I think it is very important here to stress that the WRITE
method should use UPDATE+INSERT (or mysql specific
REPLACE).
There is example code "out there" that uses just
UPDATE for the write method, in which case, when
session_regenerate_id is called, session data is lost (as an
update would fail, as the key has changed).
I've just wasted a whole day due to this (I know I should
have thought it through / RTFM, but it is an easy trap to
fall into).
----
Server IP: 87.124.64.96
Probable Submitter: 193.128.117.15
----
Manual Page -- http://www.php.net/manual/en/function.session-
set-save-handler.php
Edit -- https://master
.php.net/note/edit/78428
Del: integrated -- h
ttps://master.php.net/note/delete/78428/integrated
Del: useless -- http
s://master.php.net/note/delete/78428/useless
Del: bad code -- htt
ps://master.php.net/note/delete/78428/bad+code
Del: spam -- https:/
/master.php.net/note/delete/78428/spam
Del: non-english --
https://master.php.net/note/delete/78428/non-english
Del: in docs -- http
s://master.php.net/note/delete/78428/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78428
Reject -- https://mast
er.php.net/note/reject/78428
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|