Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout login loop


peterpan2004

Recommended Posts

Suddenly, with no changes to the server, etc, everytime a buyer tries to checkout he is taken to the login screen. He logs in, his cart is empty. He adds item to cart, clicks checkout and is back to login screen.

 

Everything was working and then boom, it's not.

 

Any suggestions?

Link to comment
Share on other sites

If you dump the cart you're probably losing the session id.

 

Could be a cookie problem.

 

Hard to say without you posting something.

 

Like your URL

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 >

Link to comment
Share on other sites

The SSL side isn't making a cookie.

 

Post your cookie settings from your configure file.

 

I.E. these lines ONLY!!!

 

  define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', ');
 define('HTTP_COOKIE_PATH', '');
 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 >

Link to comment
Share on other sites

define('HTTPS_COOKIE_DOMAIN', '.sogohosting.org');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');

Change these three and give it a shot.

 

Shared SSL and osC can be a real beyotch...

:blush:

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 >

Link to comment
Share on other sites

didn't help. This store had been working for the last year with no problems then suddenly it starts this, with no changes to the store or the server.

 

define('HTTPS_COOKIE_DOMAIN', '.sogohosting.org');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');

Change these three and give it a shot.

 

Shared SSL and osC can be a real beyotch...

:blush:

Link to comment
Share on other sites

Firefox is telling me this:

 

Name	osCsid
Value	3467789d280b2a1735ee9d22260ea674
Host	.anndowning.com
Path	[color="#FF0000"][b]/ts/[/b][/color]
Secure	No
Expires	At End Of Session

That's not what I posted.

 

Check the config file on the server to be sure the new one is there. with the correct info.

 

Sometimes permissions stop it from being updated (if you use FTP).

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 >

Link to comment
Share on other sites

I found the solution. Posting it here if anyone else has similar problem

 

If Suhosin is installed on your server you can add a simple line to your .htaccess file to disable encryption on sessions

 

 

php_flag suhosin.session.encrypt off

Link to comment
Share on other sites

Thanks for posting your solution, too many just put 'found it!'

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

  • 1 month later...
I found the solution. Posting it here if anyone else has similar problem

 

If Suhosin is installed on your server you can add a simple line to your .htaccess file to disable encryption on sessions

 

 

php_flag suhosin.session.encrypt off

 

Thanks a million - this just solved the same problem for me!

 

Bryan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...