FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178589&th=122721#msg_178589
my local Google Chrome loses session on every page request. I tested with:
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]]>Falk Fiedler2012-07-10T09:02:28-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178591&th=122721#msg_178591
falk.fiedler@googlemail.com 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
>
This is a PHP newsgroup. If you want to know what's wrong with Chrome,
I suggest you ask Chrome support.
Does it work with Firefox and/or IE? If so, then it's almost definitely
not a PHP problem.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
==================]]>Jerry Stuckle2012-07-10T09:16:07-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178592&th=122721#msg_178592
> This is a PHP newsgroup. If you want to know what's wrong with Chrome,
> I suggest you ask Chrome support.
>
> Does it work with Firefox and/or IE? If so, then it's almost definitely
> not a PHP problem.
>
> --
> ==================
yes, it works in FF or IE - but I thought maybe someone knows the problem.
Falk]]>Falk Fiedler2012-07-10T09:21:37-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178593&th=122721#msg_178593
falk.fiedler@googlemail.com wrote:
>> This is a PHP newsgroup. If you want to know what's wrong with Chrome,
>> I suggest you ask Chrome support.
>>
>> Does it work with Firefox and/or IE? If so, then it's almost definitely
>> not a PHP problem.
>>
>> --
>> ==================
>
> yes, it works in FF or IE - but I thought maybe someone knows the problem.
>
> Falk
>
Ask in the proper place and you will have a much better chance of
getting an accurate answer. Ask in the wrong place and you will more
likely get crap answers from someone who has no idea what he's talking
about.
This seems to be especially true for off-topic questions in this newsgroup.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
==================]]>Jerry Stuckle2012-07-10T09:56:55-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178601&th=122721#msg_178601
falk.fiedler@googlemail.com, 10.07.2012 11:02:
> 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.
Works for me - no problem here with my local Apache.
Tested with Google Chrome 20.0.1132.47 m on Windows 7 Pro x64.
> But only on my local webserver. The script works on a webspace. What's wrong with the local config of Chrome?
What's wrong with your local webserver?
--
Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de]]>Arno Welzel2012-07-10T18:52:29-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178603&th=122721#msg_178603
> 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.]]>Silver Moonstone2012-07-11T13:44:03-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178605&th=122721#msg_178605
> 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]]>Erwin Moller2012-07-11T14:39:23-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178607&th=122721#msg_178607
> 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:
>>>
[Session seems not to work with local webserver]
>> 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.
But you could ensure, that caching will not happen at all by sending the
appropriate headers.
--
Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de]]>Arno Welzel2012-07-11T17:36:57-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178608&th=122721#msg_178608
> Erwin Moller, 11.07.2012 16:39:
>
>> 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:
>>>>
>
> [Session seems not to work with local webserver]
>
>>> 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.
>
> But you could ensure, that caching will not happen at all by sending the
> appropriate headers.
and by "ensure", you actually mean "suggest".
--
"To every complex problem there is a solution which is
simple, neat and wrong" - HL Mencken]]>Peter H. Coffin2012-07-11T21:33:11-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178617&th=122721#msg_178617
> Erwin Moller, 11.07.2012 16:39:
>
>> 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:
>>>>
>
> [Session seems not to work with local webserver]
>
>>> 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.
>
> But you could ensure, that caching will not happen at all by sending the
> appropriate headers.
>
>
Incorrect. Information sent in the headers is a suggestion, not a
requirement. Browsers are free to ignore things like cache control (and
almost anything else).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
==================]]>Jerry Stuckle2012-07-12T04:00:01-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178621&th=122721#msg_178621
> On Wed, 11 Jul 2012 19:36:57 +0200, Arno Welzel wrote:
>> Erwin Moller, 11.07.2012 16:39:
>>
>>> 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:
>>>> >
>>
>> [Session seems not to work with local webserver]
>>
>>>> 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.
>>
>> But you could ensure, that caching will not happen at all by sending the
>> appropriate headers.
>
> and by "ensure", you actually mean "suggest".
Well... yes, when you assume that certain browsers or proxies ignore
caching related headers.
--
Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de]]>Arno Welzel2012-07-13T08:57:29-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178622&th=122721#msg_178622
> On 7/11/2012 1:36 PM, Arno Welzel wrote:
>> Erwin Moller, 11.07.2012 16:39:
>>
>>> 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:
>>>> >
>>
>> [Session seems not to work with local webserver]
>>
>>>> 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.
>>
>> But you could ensure, that caching will not happen at all by sending the
>> appropriate headers.
>>
>>
>
> Incorrect. Information sent in the headers is a suggestion, not a
> requirement. Browsers are free to ignore things like cache control (and
> almost anything else).
Yes, you're right. But at least the chance that caching will not happen
is much higher when sending the appriopriate headers.
--
Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de]]>Arno Welzel2012-07-13T08:58:45-00:00Re: Lost $_SESSION in Google Chrome
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=178623&th=122721#msg_178623
falk.fiedler@googlemail.com wrote:
> my local Google Chrome loses session on every page request. I tested with:
>
> 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?
Check your cookie permissions for your local site in chrome, most likely
you have a deny cookies in your Chrome.
If it had been a code issue, then you had the same result, no matter
which browser you tried.