Redirect if not from a specific page

Results 1 to 2 of 2

Thread: Redirect if not from a specific page

  1. #1
    Phil Davis Guest

    Default Redirect if not from a specific page

    How can I control access to a web page if it is attempted to be accessed directly. I want it to force the user back to a page that requires an ID and password then directs them to this page if the ID & password exist.

  2. #2
    Join Date
    Dec 1969
    Posts
    144

    Default RE: Redirect if not from a specific page

    you can put the server on a secure server, so that when the page is book marked for exampl, they are required to enter the user name and password, or you can use a session variable so that if the session does not equal true, then redirect. for example:<BR>&#039 ######## Check to make Sure they have logged in ###########<BR>if Session("logged") &#060;&#062; "true" then Response.Redirect "nologin.htm" <BR>ok = "true"<BR><BR>else <BR><BR>the rest of the code if they are logged in<BR><BR>end if

Posting Permissions

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