471,071 Members | 960 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

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("LoggedON")="Yes"

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

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

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

Thanks
Nov 20 '05 #1
0 601

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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.