Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session restarting on every page


dj4uk

Recommended Posts

Posted

I'm transferring a perfectly working site to another server and everything is working ok apart from sessions.

 

I've got the same settings on this server (same php.ini file).

 

Basically when I add something into the basket it appears in the basket but as soon as I navigate anywhere else in the site the basket empties.

 

I've added a quick echo into the application_top.php file to display the session ID inline and everytime you move pages the session ID changes.

 

Has anyone got any idea why this might be?

 

Cheers

 

DJ

Posted
I'm transferring a perfectly working site to another server and everything is working ok apart from sessions.

 

I've got the same settings on this server (same php.ini file).

 

Basically when I add something into the basket it appears in the basket but as soon as I navigate anywhere else in the site the basket empties.

 

I've added a quick echo into the application_top.php file to display the session ID inline and everytime you move pages the session ID changes.

 

Has anyone got any idea why this might be?

 

Cheers

 

DJ

 

 

I would have a guess that it is your configure.php files the cookies locations may be wrong.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted
I'm transferring a perfectly working site to another server and everything is working ok apart from sessions.

 

I've got the same settings on this server (same php.ini file).

 

Basically when I add something into the basket it appears in the basket but as soon as I navigate anywhere else in the site the basket empties.

 

I've added a quick echo into the application_top.php file to display the session ID inline and everytime you move pages the session ID changes.

 

Has anyone got any idea why this might be?

 

Cheers

 

DJ

 

If you have a shared SSL, you can get this same problem, I know from experience. Check you SSL paths, and if you have a shared one, check into getting a private SSL, took care of the same problem for me. http://www.positivessl.com/ssl-certificate-products/ssl.html this is where I got mine for 9 bucks.

 

Thanks Mike

Posted
I would have a guess that it is your configure.php files the cookies locations may be wrong.

Nic

 

Cheers Fimble. I had the HTTP_COOKIE_PATH was wrong.

 

Thanks again.

Archived

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

×
×
  • Create New...