note 106055 added to function.session-write-close
| From: | sss at activators dot info | Date: | Thu, 06 Oct 2011 08:55:25 +0000 |
| Subject: | note 106055 added to function.session-write-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183658@lists.php.net to get a copy of this message | ||
i have been using a mysql database custom session handler (not using cookies) and was having
problems getting the session data to be saved consistantly on my database driven website
clients also have to navigate across domains for website management at times so i have some special
code to make all this happen relatively seamlessly and to ensure that each person's data is
secure.
i added session_write_close() at the very end of the last script that set session data and solved
the problem.
i am not sure why, but it seems the calls to write and close were not always being made (i was not
smart enough to figure it out)
now that the session_write_close() call is being made, my problems seemed to have disappeared -
hopefully for good.
hope this helps someone.
----
Server IP: 117.55.229.1
Probable Submitter: 60.228.90.25
----
Manual Page -- http://www.php.net/manual/en/function.session-write-close.php
Edit -- https://master.php.net/note/edit/106055
Del: integrated -- https://master.php.net/note/delete/106055/integrated
Del: useless -- https://master.php.net/note/delete/106055/useless
Del: bad code -- https://master.php.net/note/delete/106055/bad+code
Del: spam -- https://master.php.net/note/delete/106055/spam
Del: non-english -- https://master.php.net/note/delete/106055/non-english
Del: in docs -- https://master.php.net/note/delete/106055/in+docs
Del: other reasons-- https://master.php.net/note/delete/106055
Reject -- https://master.php.net/note/reject/106055
Search -- https://master.php.net/manage/user-notes.php