Download the PHP package amuzcorp/laravel-custom-session-handler without Composer
On this page you can find all versions of the php package amuzcorp/laravel-custom-session-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download amuzcorp/laravel-custom-session-handler
More information about amuzcorp/laravel-custom-session-handler
Files in amuzcorp/laravel-custom-session-handler
Download amuzcorp/laravel-custom-session-handler
More information about amuzcorp/laravel-custom-session-handler
Files in amuzcorp/laravel-custom-session-handler
Vendor amuzcorp
Package laravel-custom-session-handler
Short Description Custom session handler for Laravel that allows excluding last_activity updates
License MIT
Package laravel-custom-session-handler
Short Description Custom session handler for Laravel that allows excluding last_activity updates
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-custom-session-handler
Laravel Custom Session Handler
Laravel의 기본 Database Session 드라이버를 확장하여
특정 라우트나 조건에 따라 last_activity 컬럼 업데이트를 제외할 수 있는 세션 핸들러입니다.
✨ 주요 기능
SESSION_DRIVER=custom_database로 간단히 사용 가능request()->routeIs()기반으로 제외할 라우트 설정- 사용자가 직접
callback을 등록해 제외 조건 제어 가능 - Laravel 9, 10, 11, 12 호환
💾 설치
⚙️ 설정
1. .env
2. config/session.php
확인만 하면 됩니다. (SESSION_DRIVER 값을 가져오기 때문에 수정 불필요)
3. 설정 파일 퍼블리시 (선택사항)
필요한 경우 다음 명령어로 설정 파일을 퍼블리시할 수 있습니다:
🧩 자동 등록되는 Service Provider
패키지는 CustomSessionServiceProvider를 자동으로 등록합니다.
서비스 프로바이더 내에서 커스텀 세션 핸들러가 다음과 같이 동작합니다:
✅ 예시: routes/web.php
🧪 작동 방식
CustomDatabaseSessionHandler::write()에서request()->routeIs()또는 등록된 콜백에 따라last_activity업데이트 여부 결정- 제외 조건을 만족하면
last_activity컬럼은 변경되지 않음 - 나머지 Laravel 세션 기능은 그대로 유지됨
📦 composer.json 참고
🔐 보안 및 버전 정책
- Laravel 공식
DatabaseSessionHandler를 그대로 상속하므로 보안 및 세션 구조는 동일 - 버전은 Semantic Versioning(semver)을 따릅니다:
MAJOR.MINOR.PATCH
🪪 라이선스
MIT License. 자유롭게 사용, 수정, 재배포 가능합니다.
✋ 기여하기
- PR / Issue 환영합니다
- 라우트 패턴 정규식 지원, exclude by middleware 등 확장 아이디어도 환영합니다!
All versions of laravel-custom-session-handler with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
The package amuzcorp/laravel-custom-session-handler contains the following files
Loading the files please wait ...