Application Variable Timeout??

Results 1 to 2 of 2

Thread: Application Variable Timeout??

  1. #1
    Anthony Biondo Guest

    Default Application Variable Timeout??

    Is there a way to set a timeout for the application variable? So maybe after 2 hours it is reset to 0? Can someone please help. Would this need to go in the global.asa file?<BR><BR>Thanks<BR>Anthony Biondo<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Application Variable Timeout??

    There&#039s no way to do it *accurately*, but...<BR><BR>Why not do it in Session_onStart?<BR><BR>As each new user comes into the application (via Session_onStart), you check the time vs. the expiration time you have set (as, of course, another Application variable). When a new user comes in after the expiration time, then you reset the application value at that point.<BR><BR>Caution: Wrap the code in Application.Lock/Unlock !<BR><BR>

Posting Permissions

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