Set up some type of user level in your database and assign each visit one.
When a user successfully logs in, get their user level and set it to a session
variable like this:
Session("UserLevel") = rs("User_Level")
On each page, set up an include file that checks the user level to ensure the
user has the appropriate level to view that page. Like this:
If Session("User_Level") <> "2" Then
Response.Redirect("Default.asp")
End If
In this example, my page would require a user_level of 2 in order to view it.
If a user tried to view it and did not have the appropriate user level, I would
redirect them to a different page.
Mark
Ayan Banerjee <[EMAIL PROTECTED]> wrote:
Hi,
I am new to ASP and working with some small codings. I am facing a
problem. I have a login page but how to secure the other pages from
being accessed by typing their path in the address bar?
Regards,
Ayan
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/