Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2010
    Thanked 6 Times in 6 Posts

    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.
    Coding is a challenge, get used to it
    Always remember to debug
    Try the guess & check method
    Break it down into simple steps

  2. #2
    Regular Coder
    Join Date
    Apr 2012
    St. Louis, MO
    Thanked 101 Times in 101 Posts
    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".

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts