Re: Session Issues

From: Date: Sat, 20 Dec 2014 17:08:35 +0000
Subject: Re: Session Issues
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-324143@lists.php.net to get a copy of this message
On 20/12/14 15:28, Simon Schick wrote: > This session-id usually is sent using a Cookie. Please check if you get the > cookie with the correct value in your client (probably your web browser) > and check, that the client again sends it to the server on the next > request. If you don't do so, PHP thinks you are a user without a previously > created session. Here is an example of the problem I am having. The cookie received is PHPSESSID: c6rb8d4g51urjpt4m5n3kcve25 with path:"/". On the next request the cookie is sent back as expected Request cookies: PHPSESSID: c6rb8d4g51urjpt4m5n3kcve25 The response is: Set-Cookie: PHPSESSID=3jmq7ku794po247mm7gtdf2f13; path=/ As you can see PHP is generating a new session regardless of whether a previous one existed. I am trying to find a way to debug the cause of this. Cheers,

« previous php.general (#324143) next »