RE: [PHP] Re: Session_id(); are changing between the pages.

From: Date: Sat, 07 Jun 2014 21:38:24 +0000
Subject: RE: [PHP] Re: Session_id(); are changing between the pages.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-323401@lists.php.net to get a copy of this message
Christoph M. Becker, I checked the browser (Set-Cookie) Cookie transferred to the browser but not sending back to the server. Also I enabled error_reporting ON, I'm getting this error at page4 after the user click (click me) at page3 (Notice: Undefined index: username in /var/www/html/phptest/test4.php on line 6) hadi wrote: > session_id(); not passing the same id number to the second page in > result session file are created empty. Browser like IE and Chrome are > not able to pick up session variable. You should have a look at the HTTP headers, and check whether the cookies are transferred to the browser (Set-Cookie) and whether they are transferred back to the server (Cookie). If the cookies are not transferred to the browser, have a look at your error logs (assuming you have set error_reporting to an appropriate value, what you should have on your developement machine anyway). There may be something like "cannot sent headers; headers already sent". -- Christoph M. Becker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Attachment: [application/pkcs7-signature] smime.p7s
« previous php.general (#323401) next »