From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]>
> 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 > ?> Your browser is not accepting the session cookie for some reason. Change your link to this: <a href="page2.php<?=SID?>">Next Page</a> and it'll work. You'll either have to pass the SID in every link/form, or figure out why cookie aren't working. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php