|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-12-18 22:54 UTC] e2c2be7ed0f2f336 at gmail dot com
Description: ------------ A session which remains empty always invoke the write callback instead of updateTimestamp of the session handler. Not really a bug but behavior would be more consistent. Test script: --------------- https://gist.github.com/julp/4bc6acac8ef4ca51e750 Expected result: ---------------- updateTimestamp Actual result: -------------- write Patchesproposal_for_bug_71162 (last revision 2015-12-18 23:05 UTC by e2c2be7ed0f2f336 at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
I cannot change "php" serialize handler's behavior, but you may use "php_serialize" handler. session.serialize_handler=php_serialize It saves a:0:{} for empty $_SESSION and timestamp would work. So this bug could be considered as feature request for setting "php_serialize" as the default serialize handler. "php_serialize" does not have restrictions for session variables names also. It should be the default.