Unauthorized Page use

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony

    Unauthorized Page use

    VS VB .Net XP Pro web forms.

    I've decided to have people log into a website for only certain pages.
    Here is how I did it.

    I created a Login aspx
    this page verifies user ID and password from a database.
    If not successful do over.
    If successful then session("SessID ") = Session.id and
    session("Logged ON")="Yes"

    On pages that need a login on the page load event I put

    if Session("SessID ") <> Session.ID or session("Logged On") <> "Yes" then
    response.redire ct(loginpage)

    It seems to work but, is there anything wrong with doing it this way?

    Thanks


Working...