FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Lost $_SESSION in Google Chrome
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Lost $_SESSION in Google Chrome [message #178605 is a reply to message #178603] Wed, 11 July 2012 14:39 Go to previous messageGo to previous message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma:
Senior Member
On 7/11/2012 3:44 PM, Silver Moonstone wrote:
> 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.
>

That may be true, but it is a poor solution since you cannot expect your
visitors to do the same in order to use the site.

Regards,
Erwin Moller

--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: not understanding pattern matching
Next Topic: Stuck on Exercise 1
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 23:12:17 GMT 2024

Total time taken to generate the page: 0.04788 seconds