note 63142 added to ref.session
| From: | dramestics at hotmail dot com | Date: | Tue, 14 Mar 2006 15:04:32 +0000 |
| Subject: | note 63142 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105789@lists.php.net to get a copy of this message | ||
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 :)
----
Server IP: 83.137.20.120
Probable Submitter: 217.121.50.158
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/note/edit/63142
Del: integrated -- http://master.php.net/note/delete/63142/integrated
Del: useless -- http://master.php.net/note/delete/63142/useless
Del: bad code -- http://master.php.net/note/delete/63142/bad+code
Del: spam -- http://master.php.net/note/delete/63142/spam
Del: non-english -- http://master.php.net/note/delete/63142/non-english
Del: in docs -- http://master.php.net/note/delete/63142/in+docs
Del: other reasons-- http://master.php.net/note/delete/63142
Reject -- http://master.php.net/note/reject/63142
Search -- http://master.php.net/manage/user-notes.php