468,496 Members | 1,795 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,496 developers. It's quick & easy.

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

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

if Session("SessID") <> Session.ID or session("LoggedOn") <> "Yes" then

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

Nov 20 '05 #1
0 579

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Phil396 | last post: by
3 posts views Thread by Newbie19 | last post: by
1 post views Thread by gnewsgroup | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.