Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Expire Cookies when using 'Force Cookie Use'


designgroop

Recommended Posts

Posted

Force cookie use causes problems if customers already have a cookie set. As per the OSC docs, this is a known issue. Forcing cookie use looks to me to be essential from a security perspective but on a live site, customers already have a 30 day cookie - which can't be overwritten when 'force cookie use' is turned on.

 

I am wondering if it is possible to kill previous cookies and trying again - before sending customers to cookie_usage.php?

 

Maybe this..

 

setcookie('cookie_test','',time()-3600)

 

But cookies are not my forte. Does anyone know where to start with this?

 

Thanks!

Posted

using

 

setcookie('cookie_test','',time()-3600)

may not work if there is any varience between server & local times

 

if you put

 

setcookie('cookie_test','',1);

 

this will give expire time of 1 sec after midnight, January 1st, 1970

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Archived

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

×
×
  • Create New...