New Session Ids generated with each page request
| From: | IndSys, GE Interlogix) | Date: | Thu, 11 Sep 2003 13:44:03 +0000 |
| Subject: | New Session Ids generated with each page request | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162291@lists.php.net to get a copy of this message | ||
My problem is that I get a new Session Id with every request I send to the server. For that reason I
am unable to share variables between pages using sessions. (I get a new session Id even I refresh
the same page). The code below prints out different session id for "page1.php" and
"page2.php". Can someone please help me figure out what would be causing this.
on page1.php I have the following code:
<?php
session_start();
echo SID
?>
<a href="page2.php">Next page </a>
on page2.php I have the following code
<?php
session_start();
echo SID
?>
Moiz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php