Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

login - checkout - login - checkout - login...argh!


Recommended Posts

Posted

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?

Posted

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)

Posted

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.

Posted

Post what you have for the entries below in the configure.php file

 

  define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_PATH', '');

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 >

Posted

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...