note 10440 added to session_start
| From: | tony at thesealedenvelope dot com | Date: | Wed, 03 Jan 2001 22:06:41 +0000 |
| Subject: | note 10440 added to session_start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9351@lists.php.net to get a copy of this message | ||
I've just spent ages trying to figure out why my session variables weren't been carried
over from one page to another. The reason, it turned out, was due to the way in which I referenced
the next page. For example:
<A HREF="http://www.somewhere.com/nextpage.php">Click
here</A>
resulted in a new session starting in nextpage.php - not what I wanted (since all my orginal
variables were lost)! Using relative addressing works OK though:
<A HREF="nextpage.php">Click here</A>
Note this is only of interest when using cookies (hence I didn't bother with SID in above
examples).
http://www.php.net/manual/function.session-start.php