Forums / Installing on a Linux/Unix Server / Customer Login Time out in SSL during registration

Customer Login Time out in SSL during registration

Views: 1,399

Results 1 to 4 of 4
17 Apr 2014, 4:53 PM
#1
chetu_dev avatar

chetu_dev

New Zenner

Join Date:
Apr 2014
Posts:
2
Plugin Contributions:
0

Customer Login Time out in SSL during registration

Hi,

I have just installed ZenCart (version 1.5.1) on a site which is on SSL(https). I uploaded the packaged zip via FTP and then installed with zc_install after that. The problems is that whenever I try to register as a customer on the front-end of ZenCart, it displays "Login Time Out" page with the message "Whoops! Your session has expired.". This happens after I click on Submit after filling the registration form. I have tried cleaning the cache.
I am able to login into backend(as admin) after making small change. I added the file https_cookie_domain into extra_configures folder for admin folder.
Is the front-end error a cookie/session error. What changes are required to make the front-end work?
Please help me in resolving this issue.
Thanks.

17 Apr 2014, 5:11 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Customer Login Time out in SSL during registration

What are the first couple of defines set to in /includes/configure.php?

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://example.com');
  define('HTTPS_SERVER', 'https://example.com');

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

When you purchased your SSL certificate, was it for https://www.example.com or example.com (no leading www.)? They're different and your configure.php file should reflect the format that's associated with your certificate.

18 Apr 2014, 10:17 AM
#3
chetu_dev avatar

chetu_dev

New Zenner

Join Date:
Apr 2014
Posts:
2
Plugin Contributions:
0

Re: Customer Login Time out in SSL during registration

The first couple of lines in /includes/configure.php are :

  define('HTTP_SERVER', 'https://dev1.example.com');
  define('HTTPS_SERVER', 'https://dev1.example.com/cart');

  define('ENABLE_SSL', 'true');

  define('DIR_WS_CATALOG', '/cart/zencart/ver_151/');
  define('DIR_WS_HTTPS_CATALOG', '/zencart/ver_151/');

My shop url is https://dev1.example.com/cart/zencart/ver_151. The certificate is for example.com (not with www.)

The Admin> Configuration> Sessions are:

Cookie Domain = True
Force Cookie Use=false
Check SSL Session ID=false
Recreate Session =True
Add period prefix to cookie domain=true

What modifications I need to do to resolve this?

18 Apr 2014, 1:36 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Customer Login Time out in SSL during registration

Try changing your configure.php to

  define('HTTP_SERVER', 'https://dev1.example.com');
  define('HTTPS_SERVER', 'https://dev1.example.com');  //-Remove the /cart from this statement

  define('ENABLE_SSL', 'true');

  define('DIR_WS_CATALOG', '/cart/zencart/ver_151/');
  define('DIR_WS_HTTPS_CATALOG', '/cart/zencart/ver_151/');