Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Problem with SSL and MySql disconnection

Problem with SSL and MySql disconnection

Locked

Views: 1,388

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
26 Nov 2007, 12:06 PM
#1
s_p_ike avatar

s_p_ike

Zen Follower

Join Date:
Feb 2005
Location:
Italy
Posts:
178
Plugin Contributions:
0

Problem with SSL and MySql disconnection

Hello,
one of our (zen cart italia) user has a strange problem:

He is using SSL, but whenever Zen Cart goes from a https page to a http page, the user is logged out (the same in admin).

He noticed that if he forces every page under ssl, it works (but this is not a good solution, both for performance and because the ssl is on port 30000 and must be written in the url...).

Environment:

Zen Cart v.1.3.7.3 (last .3 is our italian minor version and has no impact on this matter)

Apache: Apache/2.2.2 (Fedora)
Php: PHP/5.1.6
Mysql: 5.0.27

config:

define('HTTP_SERVER', 'http://www.myhost.it');
define('HTTPS_SERVER', 'https://myhost.it:30000');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', ''); // use 'db' for best support, or '' for file-based storage

Any hint about the reason of logging out?

Thanks

26 Nov 2007, 4:19 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Problem with SSL and MySql disconnection

s_p_ike:

define('HTTP_SERVER', 'http://www.myhost.it');
define('HTTPS_SERVER', 'https://myhost.it:30000');If you make them both be "www." does it work any better? (ie: add the www to the https URL)

Also, what are the settings in Admin->Configuration->Sessions?