Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to force the session ID to be created


dazz13

Recommended Posts

When I go to index.php on my localhost the session ID is created. But on the production server when I go to index.php there is no session ID. (After I checkout and it goes back to index.php there IS a session ID) How can I force there to be a session ID created everytime?

Link to comment
Share on other sites

If you don't have the Force Cookie option set, then the session ID's are being created. You wouldn't be able to checkout if they weren't.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Why don't I see the session ID in the url? There's no osCsid=... in the url. But after the checkout it returns to the first cart page with an osCsid showing.

 

Thanks

 

 

 

If you don't have the Force Cookie option set, then the session ID's are being created. You wouldn't be able to checkout if they weren't.

 

Jack

Link to comment
Share on other sites

Maybe you have a contribution installed that prevents them from showing or you are using the force cookies option. I'm wondering why it bothers you though. People go to great lenghts to get rid of the session ID's. Your'e the first I've seen that wants them there.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

well, what I notice is when I fill in some chekout pages, then close the browser window, then open a new browser window and go to the cart, the pages are already filled in with the previous information. But this DOESN't happen on the development server (i.e. on my notebook). There, everytime I close the browser window, then open a new one and go to the cart, a new session id is created and attached to the url. That prevents the previously entered info from showing up on any of the checkout pages. I like this behavior as a matter of privacy. For example if someone uses a public computer, this is how I want the cart to behave.

Link to comment
Share on other sites

there will be no session id appended to the url as long as the session cookie works. Goes away after a couple of clicks.

 

So obviously you haven't setup the your local server cookies settings correctly and so the session id is appended to the url.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...