View Full Version : Sessions Problems With SSL
acnownzu
April 21st, 2005, 02:53 AM
I'm running PHP 4.3.9 and having session related problems keeping cart contents when switching from non-secure to secure pages. I have register_globals set to off... does this need to be enabled in order for sessions to work properly?
-Jeff
Jamie
April 21st, 2005, 10:33 AM
Hi Jeff,
register_globals can be on or off with Squirrelcart. What version of Squirrelcart are you running? v1.5.5 and newer have better support for passing the session ID when needed. If your version is before 1.5.5, you should upgrade, and it might resolve the problem.
acnownzu
April 21st, 2005, 02:15 PM
I am running 1.6.0. The URL if you'd like to see is http://villagecoffeeroaster.com/cart/store.php
I enabled register_globals to see if it makes a difference, but I'm still having the same problem.
Jamie
April 21st, 2005, 03:26 PM
Hi,
Please open a helpdesk ticket for this. We will need to connect to your site via FTP and login to your cart as admin to check this out. Be sure to include that information in the ticket.
Thanks,
Jamie
acnownzu
April 21st, 2005, 06:57 PM
Submitted a help desk ticket. Hope we can get this fixed ASAP so I can launch my cart!
Thanks!
-Jeff
acnownzu
April 21st, 2005, 09:56 PM
I fixed the problem. It was caused by this piece of code in cart.php:
// below is a check to see if this person established the SESSION variable from a different store on the same server
// this will only happen if someone was shopping at 1 store, and then went to another store on the same server
// this will check for that, and if it happens, will wipe out the SESSION var
if (!$SC['store_check']) $SC['store_check'] = $site_www_root;
if ($SC['store_check'] != $site_www_root) {
session_unregister("SESSION");
unset($SC);
session_register("SESSION");
$SC['store_check'] = $site_www_root;
}
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.