Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

logged out!


Guest

Recommended Posts

why do i keep getting logged out and sent back to the login page whenever i click continue from the checkout, i have to do it about 10 times to get it to actually continue........

 

jim

Link to comment
Share on other sites

Some possibilities:

 

1. Incorrect values of the _SERVER and _COOKIE_DOMAIN defines in configure.php.

2. Setting any of the "check" options in admin under Sessions.

3. Using files instead of MySQL for sessions and losing your session info.

Link to comment
Share on other sites

Some possibilities:

 

1. Incorrect values of the _SERVER and _COOKIE_DOMAIN defines in configure.php.

2. Setting any of the "check" options in admin under Sessions.

3. Using files instead of MySQL for sessions and losing your session info.

 

 

i checked the configure.php files and sessions are set to MySQL, _SERVER & _COOKIE_DOMAIN defines appear to be correct and none of the sessions options are checked....

 

any other ideas

 

thanks

 

jim

Link to comment
Share on other sites

Not offhand. Please explain in more detail what happens. At what stage of the checkout does this occur? Do the _COOKIE_DOMAIN defines contain only a domain or hostname (eg. 'example.com') and not a URL? If you get it to proceed once, is it ok from then on?

Link to comment
Share on other sites

Not offhand.  Please explain in more detail what happens.  At what stage of the checkout does this occur?  Do the _COOKIE_DOMAIN defines contain only a domain or hostname (eg. 'example.com') and not a URL? If you get it to proceed once, is it ok from then on?

 

The lines in my configure.php look like this:

  define('HTTP_SERVER', 'http://www.guitar-stuff.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://www.guitar-stuff.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.guitar-stuff.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'www.guitar-stuff.co.uk');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

When im at the first stage of the checkout and click continue, it usually sends me back to the login page. Sometimes i can get futher and complete an order, but i often get sent back to the login page from stages 2 & 3 of the checkout.

 

I also seem to get logged out when i hit 'buy it now' and when i try to view the cart i get logged out and the cart shows up empty

Link to comment
Share on other sites

Well, after playing with your site a bit, I can see that the session is being lost, but not always. Sometimes it will persist through a couple of pages but other times it will disappear - indicated by the cart emptying. Very odd. What values do you have set under Admin..Configuration..Sessions? And what exactly is the line in configure.php that defines STORE_SESSIONS?

 

As an experiment, turn off Prevent Spider Sessions in admin.

Link to comment
Share on other sites

For grins, set HTTP_COOKIE_DOMAIN to something that isn't your domain, such as 'example.com'. Close and restart your browser and try a purchase again. The osCsid should remain in the URL throughout the process.

Link to comment
Share on other sites

For grins, set HTTP_COOKIE_DOMAIN to something that isn't your domain, such as 'example.com'.  Close and restart your browser and try a purchase again.  The osCsid should remain in the URL throughout the process.

 

the osCsid stayed in the url, still not really getting anywhere though....

sorry im a bit clueless with this stuff - learning though!

Link to comment
Share on other sites

Just a guess here.

 

If the IP address is changing then sessions would be recreated at certain times if the

 

admin->configuration->Sessions->Check IP address was set to true.

 

If so try setting it to false.

 

HTH

Tom

Link to comment
Share on other sites

I think i fixed it! :D

 

i changed the STORE_SESSIONS line to:

define('STORE_SESSIONS', ''); //

 

now everything seems fine.....

 

thanks for all the help though i'd be lost without it!

 

cheers :thumbsup:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...