Re: Lost $_SESSION in Google Chrome [message #178603 is a reply to message #178589] |
Wed, 11 July 2012 13:44 |
Silver Moonstone
Messages: 1 Registered: July 2012
Karma:
|
Junior Member |
|
|
On Tuesday, July 10, 2012 2:32:28 PM UTC+5:30, (unknown) wrote:
> hello,
>
> my local Google Chrome loses session on every page request. I tested with:
>
>
> <?php
>
> session_start();
>
> echo session_id()."<br>";
>
> if(!isset($_SESSION['temp']))
> {
> $_SESSION['temp']=99;
> }
> else
> {
> $_SESSION['temp']--;
> }
>
> echo $_SESSION['temp'];
>
> ?>
>
> the session_id() is new on every page request and the $_SESSION['temp' is always 99.
>
> But only on my local webserver. The script works on a webspace. What's wrong with the local config of Chrome?
>
> Thank you
>
>
> Falk
try clearing the browser cache.
it sometimes happens because chrome fetches the page from the cache.
|
|
|