際際滷

際際滷Share a Scribd company logo
Dim str As String
       Dim count As Integer
       '// to find out the url and then counting the no of /
       str = Request.ServerVariables("url")
       count = str.Split("/").Length

      Session.Remove("UnameOnAllPage")
      If count = 3 Then
           Response.Redirect("LOGIN.aspx")
      Else
           Response.Redirect("..LOGIN.aspx")
      End If

More Related Content

Code for url

  • 1. Dim str As String Dim count As Integer '// to find out the url and then counting the no of / str = Request.ServerVariables("url") count = str.Split("/").Length Session.Remove("UnameOnAllPage") If count = 3 Then Response.Redirect("LOGIN.aspx") Else Response.Redirect("..LOGIN.aspx") End If