|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-20 00:09 UTC] Xuefer at 21cn dot com
session data changed need ===> session update session active need only ===> session "mtime" update, and don't need to update frequently sometime, it's hard for ourself do judge whether to open a session in readonly mode. it is possible to detect whether $_SESSION is changed ? i just do it using md5 now, but if there's and capability to do internally, e.g.: a flag set when session changed, should be faster than md5. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 20:00:01 2025 UTC |
Actually I found a work around adding this in my session close method : public function close() { $this->write($this->id, serialize($_SESSION)); return true; } It's fine but if you please let me know if you are planning to have a way to configure this so I will remove my code.