Guest Posted August 14, 2005 Share Posted August 14, 2005 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 More sharing options...
stevel Posted August 14, 2005 Share Posted August 14, 2005 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. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 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. <{POST_SNAPBACK}> 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 More sharing options...
stevel Posted August 14, 2005 Share Posted August 14, 2005 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? Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 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? <{POST_SNAPBACK}> 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 More sharing options...
djmonkey1 Posted August 14, 2005 Share Posted August 14, 2005 What browser are you using? Do, or do not. There is no try. Order Editor 5.0.6 "Ultra Violet" is now available! For support or to post comments, suggestions, etc, please visit the Order Editor support thread. Link to comment Share on other sites More sharing options...
stevel Posted August 14, 2005 Share Posted August 14, 2005 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. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 everything is set to false in Admin>Configuration>sessions the line in configure.php is: define('STORE_SESSIONS', 'mysql'); Link to comment Share on other sites More sharing options...
stevel Posted August 14, 2005 Share Posted August 14, 2005 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. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 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. <{POST_SNAPBACK}> 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 More sharing options...
stevel Posted August 14, 2005 Share Posted August 14, 2005 You're losing the connection to the session as stored in the database. I don't know why. It would take a lot of on-server debugging. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
OceanRanch Posted August 14, 2005 Share Posted August 14, 2005 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 More sharing options...
Guest Posted August 14, 2005 Share Posted August 14, 2005 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 More sharing options...
stevel Posted August 14, 2005 Share Posted August 14, 2005 Well, that's bad. If that fixed it, your MySQL server is flaky, and you'll have other problems. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.