Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: Lost $_SESSION in Google Chrome Date: Tue, 10 Jul 2012 20:52:29 +0200 Organization: A noiseless patient Spider Lines: 43 Message-ID: <4FFC79ED.8070203@arnowelzel.de> References: <7b349e8d-076f-4497-87b4-38786ac3ade1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="daaa3aed3c2cee055e82a8ff6e0b01e1"; logging-data="6720"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19o0fwOcOWnNeff2yu6KKcYOlca2YzySSQ=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <7b349e8d-076f-4497-87b4-38786ac3ade1@googlegroups.com> Cancel-Lock: sha1:P6UsRmM6h0DZ9j52WigXOKbSlcY= Xref: csiph.com comp.lang.php:6527 falk.fiedler@googlemail.com, 10.07.2012 11:02: > hello, > > my local Google Chrome loses session on every page request. I tested with: > > > > session_start(); > > echo session_id()."
"; > > 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