Creating timed-deletion messages?
I'm looking for a way to automatically delete user-sent messages from a database after a user-defined time limit has been met or exceeded. What would be the easiest way to accomplish this? The time limit is set using an input element with the value of the type attribute as range, it can be anywhere from 0 (message won't be deleted) to 60 seconds (message will delete in 60 seconds).
Would it be easier to accomplish this server-side or client side? I was thinking about adding a 'self_destruct' field to the messages table and checking the sent field against the self destruct field.
Server-side. I'm assuming, of course, that the messages are being stored in a database.
If that's the case, some SS languages have Scheduled Tasks (ColdFusion, for sure) that can be run to check time and perform "clean up".
|All times are GMT +1. The time now is 01:03 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.