note 63142 deleted from ref.session by didou
| From: | didou@php.net | Date: | Sun, 23 Apr 2006 22:55:09 +0000 |
| Subject: | note 63142 deleted from ref.session by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109239@lists.php.net to get a copy of this message | ||
Note Submitter: dramestics at hotmail dot com
----
I fount a problem regarding session & cookie usage.
If you use session_start(), then the SESID is set in a cookie on the clients computer.
But when php.ini's variables_order is set to SGP (Session,Get,Post), php will not write a
cookie and will lose its SESID.
So every time you switch page, php will generate a complete new SESID and the saved data will be
lost in an other session...
Took me 2 days to find this. Hope this will save some people some time :)