Redirect on session end

Results 1 to 3 of 3

Thread: Redirect on session end

  1. #1
    Linda Pyrc Guest

    Default Redirect on session end

    Does anyone know how to force a certain ASP into action on Session end ??<BR><BR>I tried the following but it had no effect.<BR><BR>Sub Session_onEnd<BR> Response.Redirect "new.asp"<BR>end sub<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Redirect on session end

    nope, session_onend doesn&#039t always fire.<BR><BR>you&#039d be best checking for a certain session variable&#039s existence in each page, and if it doesn&#039t exist, bounce the user - it&#039s more reliable anyway<BR><BR>j

  3. #3
    Join Date
    Dec 1969

    Default RE: Redirect on session end

    apart from Session_OnEnd being unreleiable, it does not support the request, response or server objects. The only built-in objects you can use are session and application. So, for example, if you need to use a server.mapPath directive, store the fully qualified path in an application variable BEFORE the session ends.<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