Home »
Imported messages »
comp.lang.php »
Lost $_SESSION in Google Chrome
Lost $_SESSION in Google Chrome [message #178589] |
Tue, 10 July 2012 09:02  |
Falk Fiedler
Messages: 3 Registered: August 2011
Karma:
|
Junior Member |
|
|
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
|
|
|
Goto Forum:
Current Time: Tue Apr 08 20:09:33 GMT 2025
Total time taken to generate the page: 0.12383 seconds