Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart lost on loging due to new session


priyeshrawal

Recommended Posts

Posted

New session is formed when logging in causing loss of products in the cart, however if i clicked checkout then nothing is lost as session id remains the same

What is causing a new session ID everytime i login rather than leaving it as it is before logging in?

 

My site is heavily modded. anyone know where i can start looking? configure file has not changed, all is fine there i think.

Thanks

Posted
New session is formed when logging in causing loss of products in the cart, however if i clicked checkout then nothing is lost as session id remains the same

What is causing a new session ID everytime i login rather than leaving it as it is before logging in?

 

My site is heavily modded. anyone know where i can start looking? configure file has not changed, all is fine there i think.

Thanks

You might try recreate session in admin. I'm sure you can find it in sessions.

Posted
You might try recreate session in admin. I'm sure you can find it in sessions.

 

Hi thanks, that is not the issue,

I am trying to figure out how to correct the code behind login so that it does not create a new session when one is already there preventing loss of products in a cart when customer logs in.

any ideas what could be causing this or which code i should check?

Thanks

Posted
Hi thanks, that is not the issue,

I am trying to figure out how to correct the code behind login so that it does not create a new session when one is already there preventing loss of products in a cart when customer logs in.

any ideas what could be causing this or which code i should check?

Thanks

The stock osc works, so what do you have?

Posted
The stock osc works, so what do you have?

Hi my website is significantly modified, however I dont know where to begin looking? what files govern the login of customers and maybe I can try and check these files. thanks

Posted

Hi,

I had a similar problem and it seems that there can be many reasons to experiance an empty cart. Mine was that I had force cookies true and the catalog/includes/configure.php settings wrong

 

I had:

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'mydomain.com.au');

 

Should of been;

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com);

 

If this isnt your issuse google "oscommerce empty cart" & you'll find some other solutions

 

sjc

Archived

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

×
×
  • Create New...