View Full Version : delete cookies after inactivity

01-27-2012, 08:44 AM
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..:)

01-27-2012, 09: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...

01-29-2012, 03: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