Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6527

Re: Lost $_SESSION in Google Chrome

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: Lost $_SESSION in Google Chrome
Date 2012-07-10 20:52 +0200
Organization A noiseless patient Spider
Message-ID <4FFC79ED.8070203@arnowelzel.de> (permalink)
References <7b349e8d-076f-4497-87b4-38786ac3ade1@googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Lost $_SESSION in Google Chrome falk.fiedler@googlemail.com - 2012-07-10 02:02 -0700
  Re: Lost $_SESSION in Google Chrome Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-10 05:16 -0400
    Re: Lost $_SESSION in Google Chrome falk.fiedler@googlemail.com - 2012-07-10 02:21 -0700
      Re: Lost $_SESSION in Google Chrome Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-10 05:56 -0400
  Re: Lost $_SESSION in Google Chrome Arno Welzel <usenet@arnowelzel.de> - 2012-07-10 20:52 +0200
  Re: Lost $_SESSION in Google Chrome Silver Moonstone <m00n.silv3r@gmail.com> - 2012-07-11 06:44 -0700
    Re: Lost $_SESSION in Google Chrome Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-07-11 16:39 +0200
      Re: Lost $_SESSION in Google Chrome Arno Welzel <usenet@arnowelzel.de> - 2012-07-11 19:36 +0200
        Re: Lost $_SESSION in Google Chrome "Peter H. Coffin" <hellsop@ninehells.com> - 2012-07-11 16:33 -0500
          Re: Lost $_SESSION in Google Chrome Arno Welzel <usenet@arnowelzel.de> - 2012-07-13 10:57 +0200
        Re: Lost $_SESSION in Google Chrome Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-12 00:00 -0400
          Re: Lost $_SESSION in Google Chrome Arno Welzel <usenet@arnowelzel.de> - 2012-07-13 10:58 +0200
  Re: Lost $_SESSION in Google Chrome "J.O. Aho" <user@example.net> - 2012-07-13 11:27 +0200

csiph-web