Chris, I am sorry to call it a cookie.. I see the data in a session file (not a cookie) I don't have a html file. I simply call the .php file by typing the url as http://localhost/page1.php
Thanks moiz -----Original Message----- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 4:49 PM To: Daniel Guerrier; Golawala, Moiz M (IndSys, GE Interlogix); [EMAIL PROTECTED] Subject: Re: [PHP] PHP not remembering sessions --- Daniel Guerrier <[EMAIL PROTECTED]> wrote: > Use > $_SESSION['var'] > > instead of > > $_SESSION["var"] That won't make any difference. As for the original question, I don't notice any immediate problems with the code: > > in page1.php: > > <? session_start(); > > $_SESSION["var"] = "Please help"; ?> > > <form action="sessionTest2.php" method=post> > > <input type="text" name="loopCount" size="21", > > maxlength="20"></td> > > <input type="submit" value="Submit"></td> > > in page2.php: > > <? session_start(); > > echo $_SESSION["var"]; > > echo $_POST["loopCount"]; > > ?> You mentioned seeing "Please help" in a cookie. Are you certain about this? I don't understand how that can end up in a cookie unless you set the cookie yourself or there is a serious bug. Aside from that, it is also worth analyzing exactly what cookies are getting sent by the browser when it requets page2.php. Can you show us the HTTP for this particular transaction? Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php