Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session or cookies?


illusions2k

Recommended Posts

Posted

I was wondering what you guys use for your clients, session id or cookie usage. and if you use cookies, how do you get spiders and crawlers to index your site since they dont accept cookies.

 

whats better sessions or cookie usage.

Posted
I was wondering what you guys use for your clients, session id or cookie usage. and if you use cookies, how do you get spiders and crawlers to index your site since they dont accept cookies.

 

whats better sessions or cookie usage.

 

there is no choice between them as they are two different entities, you have both.

Treasurer MFC

Posted
there is no choice between them as they are two different entities, you have both.

 

so what does force cookie usage mean? you mean i my site uses both?

Posted
so what does force cookie usage mean? you mean i my site uses both?

 

Force cookies means that no session is started until cookies can be set and read back so that the session id can be stored in that cookie. So if the cookie cannot be set (because it is refused or your settings are wrong) no session is started, no session variables like language, currency and yes, shopping cart will function. Hence the cookie usage page if you wish to use the cart.

 

if set to false, a cookie setting is still attempted but if it cannot be read back, the sessionid is attached to every url because that is then the only available option left to retain it and because you do not force cookies, you allow it.

 

With set to false, on first page entry it is always attached because you can only verify if the cookie setting was successful on the next page request. If successful, the session id will from then on be managed in the cookie and no longer attached to the url.

Treasurer MFC

Archived

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

×
×
  • Create New...