Guest Posted June 10, 2010 Posted June 10, 2010 osCommerce Online Merchant v2.2 RC2a PHP Version 5.2.12 Whenever I click the "checkout" button, it returns me to the login page. I log in, it forgets what was in the cart, so I add an item, then it remembers and I have 2 items! Click "checkout" and it goes to the login page. Repeat forever! www.wufstuff.com is the site. Any ideas? Quote
Guest Posted June 10, 2010 Posted June 10, 2010 This is a little simpler...maybe: I log in. It says "Welcome back Spencer". I go to any page and then click "catalog" in the breadcrumb. It says "Welcome Guest". (bad) I log in, it says "Welcome back Spencer". I just click "catalog" and it says "Welcome Guest". (bad) I log in, it says "Welcome back Spencer". I refresh the page, even shift-refresh and it still says "Welcome back Spencer". (normal) I log in, go to another page. Then click the "back" button and refresh, it says "Welcome back Spencer". (normal) And, as above, click "checkout" and it goes to the login page, even though I'm already logged in. (bad) Quote
Guest Posted June 12, 2010 Posted June 12, 2010 Update: I have determined that the problem comes from switching from SSL to non-SSL. When I go to log in, it is secure. Then it goes to the main page and it is still secure. When I click on "catalog", it goes to the unsecure page and that's when it forgets me. If I set both secure and unsecure links in configure.php to the secure server, everything works great. Quote
germ Posted June 12, 2010 Posted June 12, 2010 Post what you have for the entries below in the configure.php file define('HTTPS_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_PATH', ''); Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted June 18, 2010 Posted June 18, 2010 Post what you have for the entries below in the configure.php file define('HTTPS_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_PATH', ''); Thanks Germ. Just based on your question, I figured out to put the secure part in both of those lines and it works now! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.