Jump to content

Q> How to Delete Records in the database when the COOKIE has expired


Recommended Posts

why do you need to delete it?

if the timestamp is expired then they just flat out shouldn't be logged in anymore.

 

if you delete your records then what's the point of putting them in there...having all those records are good for statistics and such.

im trying to do a webpage that counts how many user is on my site and who they are ... there username will be stored into my database when they are online but when they are not available they will be deleted into my database

good point, but that raises another question..

does the op really need cookies?

 

in short...there is no function called onCookieExpired (although you can write a cron job for it) but if you use session's you can tell who is active (logged into the page) much easier

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.