RE: [PHP] PHP not remembering sessions

From: Date: Thu, 23 Oct 2003 21:10:17 +0000
Subject: RE: [PHP] PHP not remembering sessions
Groups: php.general 
Request: Send a blank email to php-general+get-167364@lists.php.net to get a copy of this message
I added the code you mentioned. Below is the result from the browser. I notice that the sessionId is the correct one from the previous page. I think this is good new.. :) 2 [Array ( [PHPSESSID] => 0572d98f00483accdc6e61348b359287 [loopCount] => 2 ) ] Thanks moiz -----Original Message----- From: Chris Shiflett [mailto:shiflett@php.net] Sent: Thursday, October 23, 2003 5:03 PM To: Golawala, Moiz M (IndSys, GE Interlogix); Daniel Guerrier; php-general@lists.php.net Subject: RE: [PHP] PHP not remembering sessions --- "Golawala, Moiz M (IndSys, GE Interlogix)" <Moiz.Golawala@ge.com> wrote: > I am sorry to call it a cookie.. I see the data in a session file > (not a cookie) OK, so you just look in this file manually? > I don't have a html file. I simply call the .php file by typing the > url as http://localhost/page1.php HTML and HTTP are two different things. What I wanted to find out is whether your browser is sending the cookie when it requests that second page. Put this code in there: <p>The cookie data is: <pre>[<? print_r($_POST); ?>]</pre> Let us know what that shows. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp

« previous php.general (#167364) next »