Results 1 to 4 of 4

Thread: web site access

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    web site access

    I have a six page web site. To enter the site a user needs to enter a userid/password. How can I stop someone from entering the site by bypassing the password page and going directly to another page. Say if someone were to email someone else the URL of one of my pages. Could I use a session variable to verify that they put in a proper userid/password? Or is there another way?

    thanks,
    eye

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    during the page_load check for a session varaible that you can set when someone logs in. if the value is wrong/false/whatever, just redirect to login
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Or just use cookies. If they have the cookie, they can get in, if not they can be redirected to the login page.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  4. #4
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    Or use the web.config to redirect to the login for specified pages. Read up on forms authentication in the sdk docs. It's an excellent way of protecting pages.

Posting Permissions

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



Click Here to Expand Forum to Full Width