...

View Full Version : delete cookies after inactivity



Prashank
01-27-2012, 09:44 AM
Hello!
I want a simple script which deletes two cookies after 10 min when the user has last loaded a page and was active 10 min before.

Thanks for any help..:)

jmj001
01-27-2012, 10:08 AM
just set the cookie to timeout after 10 minutes of inactivity


setcookie("cookiename", 'somevalue', time() +60*10);

update that every time they load a page or whatever...

golffor1
01-29-2012, 04:56 AM
Thanks I removed the spare 'e' and was hoping that might fix the issue but it didn't.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum