Edit report at https://bugs.php.net/bug.php?id=17860&edit=1

 ID:                 17860
 Updated by:         yohg...@php.net
 Reported by:        Xuefer at 21cn dot com
 Summary:            Suggestion: auto detect whether session changed
-Status:             Assigned
+Status:             Closed
 Type:               Feature/Change Request
 Package:            Session related
 Operating System:   all
 PHP Version:        4.2.1
 Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

Will be available 5.6 or later.


Previous Comments:
------------------------------------------------------------------------
[2012-03-30 10:01:07] yohg...@php.net

I'll implement by checking hash of serialized session data.
Saving unneeded session writes is good for many apps.

------------------------------------------------------------------------
[2002-06-20 00:15:11] Xuefer at 21cn dot com

yes, i know, a file handler don't need to update mtime, they have "atime", but 
for a drive which not local, or sql_session_handler, a remote sql server, it's 
nightmare to send session data every page load

we need to detect whether "it's REALLY need to update session data"

------------------------------------------------------------------------
[2002-06-20 00:09:15] 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.

------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=17860&edit=1

Reply via email to