How to do url-asp redirection not to enter specific page other than in sequence?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pchahar
    New Member
    • Dec 2006
    • 9

    How to do url-asp redirection not to enter specific page other than in sequence?

    How to do url-asp redirection. Step 1: join.asp Step 2: edu.add.asp IF coming from join asp, OPEN, else REDIRECT index.asp Step 3: other.add.asp IF coming from edu.add.asp, OPEN, else REDIRECT index.asp Step 4: exp.add.asp IF coming from other.add.asp, OPEN, else REDIRECT index.asp Step 5: att.add.asp IF coming from att.add.asp, OPEN, else REDIRECT index.asp
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    Originally posted by pchahar
    How to do url-asp redirection.
    Step 1: join.asp
    Step 2: edu.add.asp IF coming from join asp, OPEN, else REDIRECT index.asp
    Step 3: other.add.asp IF coming from edu.add.asp, OPEN, else REDIRECT index.asp
    Step 4: exp.add.asp IF coming from other.add.asp, OPEN, else REDIRECT index.asp
    Step 5: att.add.asp IF coming from att.add.asp, OPEN, else REDIRECT index.asp
    Code:
     ----- edu.add.asp -----
    <%
    if request.servervariables("http_referer")  <> "join.asp" then
     response.redirect "join.asp"
    end if
    %>
    example

    Comment

    • karthi84
      Contributor
      • Dec 2006
      • 270

      #3
      i think the above code is not working, if i am wrong i am sorry as it was not working for me. but i tried the same using a session passing its value to the next page and checking the condition and redirecting it from there.

      if i am write about the above coding try my logic it will work. any problem then reply and get me a note in my personal message so that i can identify that u have replied.
      regards.....

      Comment

      Working...