session timeouts...whats the best approach?

Results 1 to 5 of 5

Thread: session timeouts...whats the best approach?

  1. #1

    Default session timeouts...whats the best approach?

    Just wanting to know what the best approach is to look for session timeouts within a web based app. Many of my conditional statements run comparisons against session variables. Whats the best way to catch session timeouts and redirect users to a "Sorry your session has timed out"...<BR><BR>At the moment im simply doing this...<BR><BR>&#060;%<BR>if session("event_title") = "" then<BR>response.redirect .....<BR>end if<BR>%&#062;<BR><BR>Is there a more efficient way of handling this?<BR><BR>ALSO...<BR>Id like to know what the most efficient way of clearing ALL of the session variables i have stored once the insertion to the database is carried out...Do I have to go through each one and clear them like so? session("whatever") = ""<BR><BR>Thanks,<BR>John

  2. #2

    Default ..I have just noted the session.abondon method, ho

    ..this is probably not an option, as this kills the user session as well. Users would then have to &#039;log back in&#039;. Not really what I want at all.<BR><BR>Thanks,<BR>John

  3. #3

    Default ....anyone?


  4. #4
    Join Date
    Dec 1969

    Default RE: ....anyone?

    Well. You can use Session.Contents.RemoveAll().<BR><BR>That way you can save the session variables you need (the login information) in local variables, remove its contents, then re-assign.<BR><BR>Craig.

  5. #5

    Default thanks

    ...Ill give it a try.<BR><BR>John

Posting Permissions

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