|
Subject:
|
Security for website
|
|
Posted By:
|
eapsokha
|
Post Date:
|
2/15/2004 9:24:02 PM
|
When user types the url address of a page within my domain and press enter, then I want check to see whether he has log in or not but I don't want to place the same secured code in all pages. So what should I do?
Many thanks Sokha
|
|
Reply By:
|
katsarosj
|
Reply Date:
|
2/15/2004 11:27:03 PM
|
You can use a session variable to store that they have already logged in.
Something like:
If Session("LoggedIn") = "" Then 'redirect them to the login page Else 'run the code for this page End If
J
|