Forums / Bug Reports / Session lost in Chrome and Safari

Session lost in Chrome and Safari

Locked

Views: 2,182

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Jun 2013, 12:29 AM
#1
demon450 avatar

demon450

New Zenner

Join Date:
Jun 2013
Posts:
5
Plugin Contributions:
0

Session lost in Chrome and Safari

Hi,
Session always lost in Chrome and Safari:

  1. When I switch language to French, it's only effective in current page. Everything comes back to English if I go to another page.
  2. Cannot log into back end control panel in Chrome, no matter I input the right pair or not. And there is no error msg.

I tried to write a sample php code that includes 2 php pages, the first one sets a session value, then echo it on the second page. It works properly both in Chrome and Safari. So I guess it maybe a bug or I have some setting problems.

Need help
Thank you!:D

5 Jun 2013, 12:44 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Session lost in Chrome and Safari

Chrome is known to do some odd things with session cookies.
Go to Admin->Configuration->Sessions and change the dot-prefix setting. Leave all the other settings alone.

And be sure to then test it in all other browsers to be sure you haven't broken something for them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Jun 2013, 12:55 AM
#3
demon450 avatar

demon450

New Zenner

Join Date:
Jun 2013
Posts:
5
Plugin Contributions:
0

Re: Session lost in Chrome and Safari

Thank you so much dude! I set the prefix to false and it works now!

18 Jun 2013, 7:43 AM
#4
enochian avatar

enochian

New Zenner

Join Date:
Jan 2009
Posts:
33
Plugin Contributions:
0

Re: Session lost in Chrome and Safari

DrByte:

Chrome is known to do some odd things with session cookies.
Go to Admin->Configuration->Sessions and change the dot-prefix setting. Leave all the other settings alone.

And be sure to then test it in all other browsers to be sure you haven't broken something for them.

Thanks for this solution. I was having a similar problem with Chrome. Every time I tried adding products to the shopping cart I was getting the error Whoops! Your session has expired. This was happening from the very first time I tested in Chrome. DrByte's solution worked for me. :clap: :clap:

Thanks again