If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / DreamHost vs "whoops your session...you need to log in"

DreamHost vs "whoops your session...you need to log in"

Started by tomtom55 on 30 Dec 2014, 9:44 PM · Views: 887

Results 1 to 2 of 2
30 Dec 2014, 9:44 PM
#1
tomtom55 avatar

tomtom55

New Zenner

Join Date:
Oct 2014
Posts:
17
Plugin Contributions:
0

DreamHost vs "whoops your session...you need to log in"

I have a store running on Dreamhost and have had problems for quite some time. One of them has been persistent no matter what I try. When a customer finishes the checkout process and hits the confirm button they randomly receive the "whoops your session...you need to log in" error. The order data is never sent to the processor. I have fast and easy checkout installed but have disabled it and the problem continues. The issue does not occur on every transaction but probably about one in five or ten. Of course it seems to occur almost every time it is an actual paying cutomer and not just me testing it. I have tried everything I can find from searching around the web including adjusting max_execution_time and rolling back the version of php being used. I have also tried changing many of the what seemed like relevant settings in configuration > sessions. This only occurs when trying to run credit cards through my site (using paypal payflow). No matter what I try it does not correct the issue. I have been working with DH support and they respond quickly but none of their suggestions seem to change anything. As of now I am just forcing all customers through paypal express and believe I am losing some business as a result. I am considering just changing hosts but would obviously like to avoid that if possible. If changing hosts is my best option, can people suggest a few based on their experience. Those listed in the reccomended hosting seciton have bad reviews elsewhere (like every host on the web, it seems) and very little info regarding their use with ZC. People's personal experiences with other hosts are more than welcome.

I have also checked error logs from both ZC and DH after the problem occurs and there is nothing recorded in either.

Thanks,
Tom

26 Jan 2015, 6:19 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: DreamHost vs "whoops your session...you need to log in"

tomtom55:

I have a store running on Dreamhost and have had problems for quite some time. One of them has been persistent no matter what I try. When a customer finishes the checkout process and hits the confirm button they randomly receive the "whoops your session...you need to log in" error.
Yup. Apparently Dreamhost sets their PHP configuration for session.hash_bits_per_character to a value of 6, which causes unsupported characters to be used in session ids.

Check this PHP configuration setting:

  1. Admin->Tools->Server Info ... Press CTRL+F to "search the page" and search for session.hash_bits_per_character
  2. If session.hash_bits_per_character is set to 6, then you'll need to apply this fix: http://www.zen-cart.com/showthread.php?215694&p=1270902#post1270902

.
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.