Timing out Application variables

Results 1 to 2 of 2

Thread: Timing out Application variables

  1. #1
    Daren Guest

    Default Timing out Application variables

    It is possible to give application variables a finite lifespan, eg 1 hour?<BR>I have an ASP Chat Box at www.darenp.co.uk . A maximum of 25 lines are viewable, which are stored in an Application array. What I want is for the values within the array to have a 1 hour lifespan, so what people have said does not remain indefinitely, or until someone replaces it with new text. Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: Timing out Application variables

    People often want to time out application variables when they are using them to cache information. I.e., put the HTML results from an expensive database query in an application variable for an hour; when people request the page that does the expensive calculation, show them the application variable; after an hour, requery the database.<BR><BR>If this is what you want to do, in essence, check out this FAQ:<BR>http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=142<BR><BR>It will get you started...<BR><BR>Happy Programming!

Posting Permissions

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