Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cookies off = cart empty, new session id each click, BUG?


sfatula

Recommended Posts

Ok, I've been hassling with this for a bit. If I turn cookies off, I see the session ID in the links, which I would expect. But, each click generates a new session id. Even worse, adding an item to the cart gives no item in the cart as a new session ID is generated. This is in V2.2.

 

I got to looking, in the application_top.php file, there is a line that says:

 

if ( (getenv("HTTPS") == "on") && ($HTTP_GET_VARS[tep_session_name()]) ) {

 

Well, my hosting company has TWO servers, the non SSL server does not have the HTTPS environment variable, and therefore, new session IDs are always generated as this IF is never true.

 

I remove the getenv portion, and things seem to work ok. My question is what ill effects can I expect, and why is the HTTPS check there in the first place, I don't see any obvious use of this?

Steve

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...