note 63214 added to function.session-start
| From: | dele at tsaboin dot com | Date: | Thu, 16 Mar 2006 09:20:31 +0000 |
| Subject: | note 63214 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105897@lists.php.net to get a copy of this message | ||
So many solutions has been raised and non was able to solve my problem. But i think the solution is
"the transfer of session data between domains being lost".
I notices the session_start() function initiate a session file on disk for every new domain that its
header is set for the current browser.
For instance:
--when your browser hit yourdomain.com/index.php and a session_start() function is on this page, a
session_XXXXX file is set on the disk (the sessiontemporary folder).
--if along the line your code includes a header redirect to location like
www.yourdomain.com/sample.php, another session_XXXX file is set for the new domain and as such your
session data is null for the new domain.
SESSION FUNCTION IS DOMAIN SPECIFIC.
So, to savage the situation. be domain specific.
Can cost you hours (if not days to figure out).
----
Server IP: 85.116.0.130
Probable Submitter: 192.116.73.200 (proxied: 192.116.73.200)
----
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/function.session-start.php
Edit -- http://master.php.net/note/edit/63214
Del: integrated -- http://master.php.net/note/delete/63214/integrated
Del: useless -- http://master.php.net/note/delete/63214/useless
Del: bad code -- http://master.php.net/note/delete/63214/bad+code
Del: spam -- http://master.php.net/note/delete/63214/spam
Del: non-english -- http://master.php.net/note/delete/63214/non-english
Del: in docs -- http://master.php.net/note/delete/63214/in+docs
Del: other reasons-- http://master.php.net/note/delete/63214
Reject -- http://master.php.net/note/reject/63214
Search -- http://master.php.net/manage/user-notes.php