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

Go to topic 9705

Return to index page 948
Return to index page 947
Return to index page 946
Return to index page 945
Return to index page 944
Return to index page 943
Return to index page 942
Return to index page 941
Return to index page 940
Return to index page 939