Wait before redirect

Results 1 to 3 of 3

Thread: Wait before redirect

  1. #1
    Join Date
    Dec 1969

    Default Wait before redirect

    I&#039;ve made a logout function. After the cookie is destroyed the user is redirected to the login screen. But, I would like to give the user a message before redirecting, something like "You&#039;re logged out!". Somebody any idea how to do this?<BR><BR>Thanks in advance,<BR>Ok impala!

  2. #2
    Join Date
    Dec 1969

    Default You can't with just ASP

    ASP executes the entire page all at once on the server.<BR><BR>You would have to use a Javascript redirect script or a refresh meta tag. Theres loads of examples of this, do a search on google for &#039;javascript redirect&#039; or somthing along those lines.<BR><BR>Matt

  3. #3
    Join Date
    Dec 1969

    Default RE: Wait before redirect

    If u want 2 do this in ASP, u can do 1 thing.After cookies are destroyed instead of redirecting directly 2 Login screen, redirect the user to a page where "You have successfully logged out. Want 2 login again?" message with a submit button below that , clicking on which gets user to Login screen.

Posting Permissions

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