note 63214 deleted from function.session-start by bjori
| From: | bjori@php.net | Date: | Sun, 16 Apr 2006 00:39:10 +0000 |
| Subject: | note 63214 deleted from function.session-start by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108235@lists.php.net to get a copy of this message | ||
Note Submitter: dele at tsaboin dot com
----
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).