daravel_session 1.25.0
daravel_session: ^1.25.0 copied to clipboard
Laravel-compatible sessions for Daravel: file and database stores, encrypted cookies and CSRF protection, on Laravel's sessions table and cookie formats.
Changelog #
1.21.0 #
- Added:
SessionGuard(auth.session<User>('web', provider)), Laravel's session guard on the samelogin_web_<sha1>key, so a login holds on both sides of a shared store. Remember-me cookies are not supported yet.
1.20.1 #
- Fixed: a JSON session (
'serialization' => 'json', the laravel/laravel 13 skeleton) read as empty and its row was replaced in PHPserialize()format, which logged the user out of Laravel. Both formats are read, also withSESSION_ENCRYPT, and a stored session keeps its format. - Added:
SESSION_SERIALIZATION(phporjson), the format of new sessions;jsonby default withCOMPAT_LARAVEL_VERSION=13.
1.19.0 #
- Changed: the default
SESSION_DRIVERisdatabase, as laravel/laravel 11 to 13 (wasfile). - Added
SESSION_ENCRYPT(Laravel'sEncryptedStorepayload) andSESSION_PARTITIONED_COOKIE.
1.18.0 #
- First release:
withSession(), thefile,databaseandarraydrivers on Laravel'ssessionstable and payload (base64(serialize($attributes))),StartSessionMiddleware,EncryptCookiesMiddleware(Laravel'sCookieValuePrefixandCryptpayloads) andVerifyCsrfTokenMiddleware(_token,X-CSRF-TOKEN,X-XSRF-TOKEN, theXSRF-TOKENcookie, 419CSRF token mismatch.);request.session,Session.current, flash data,regenerate,invalidate;CreateSessionsTable.