Re: Session_id(); are changing between the pages.

From: Date: Sat, 07 Jun 2014 17:20:41 +0000
Subject: Re: Session_id(); are changing between the pages.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-323400@lists.php.net to get a copy of this message
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

« previous php.general (#323400) next »