|
-
Oct 4th, 2002, 12:36 PM
#1
Thread Starter
Frenzied Member
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
-
Oct 4th, 2002, 12:39 PM
#2
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
-
Oct 4th, 2002, 03:10 PM
#3
Frenzied Member
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..
-
Oct 5th, 2002, 09:07 AM
#4
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|