stevencorona / sessionhandlercookie Goto Github PK
View Code? Open in Web Editor NEWA simple HMAC-cookie based session handler implementation for PHP 5.4's SessionHandlerInterface
License: MIT License
A simple HMAC-cookie based session handler implementation for PHP 5.4's SessionHandlerInterface
License: MIT License
After adding SessionHandlerCookie
to the code my logs got flooded with these messages
NOTICE: PHP message: PHP Warning: session_write_close(): Session callback expects true/false return value in Unknown on line 0
NOTICE: PHP message: PHP Warning: session_write_close(): Failed to write session data using user defined save handler. (session.save_
path: /tmp) in Unknown on line 0
I'm running php 7.3.33
Hi!
Using plain comparison https://github.com/stevencorona/SessionHandlerCookie/blob/master/src/SessionHandler/Storage/SecureCookie.php#L65 opens the subj.
Please consider using something like https://github.com/dvv/macaron/blob/master/src/Macaron.php#L36-L59.
TIA,
--Vladimir
Could you publish this so it's a simple "composer install" to get it? The composer.json file is already there, should just be a case of clicking submit on packagist.org
Cookie size per domain is limited in some browsers and/or by web servers (when limited by a web server, the user would be forced to manually delete cookies before any more requests).
Before base64_encode, the data could be gzipped.
It will reduce size to at least half, for non-binary data (arrays of text strings, ints, etc.).
And it will provide some level of obsfucation.
Note: If you are ever considering adding encryption, encrypt after gzipping.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.