I have a secure website that is ASP.Net and I maintain security by checking a session id to insure the user is logged on.
Code Sample:
If IsNothing(Session(LOGGEDID)) Or Session(LOGGEDID) < 1 Then
Session(GOBACKPAGE) = "http://LineageSafety/Zoomaspx/SearchAsp.aspx"
Response.Redirect(LOGONPAGE)
End If
If Session(USRLEVEL) < 1 Then
Response.Redirect(LOGONPAGE)
End If
Adding this to the code of a search page is resulting an error message that seems to be related to permission.
Is there a way to pass session variable to the search page to insure that an individual is logged into the website?
Thanks
Code Sample:
If IsNothing(Session(LOGGEDID)) Or Session(LOGGEDID) < 1 Then
Session(GOBACKPAGE) = "http://LineageSafety/Zoomaspx/SearchAsp.aspx"
Response.Redirect(LOGONPAGE)
End If
If Session(USRLEVEL) < 1 Then
Response.Redirect(LOGONPAGE)
End If
Adding this to the code of a search page is resulting an error message that seems to be related to permission.
Is there a way to pass session variable to the search page to insure that an individual is logged into the website?
Thanks
Comment