Monday, December 17, 2007

How to make a condition that will not allow visitor to login

How to make a condition that will not allow visitor to login

- We can put some checks to avoid the visitor from seeing the page without logging in the system:

<%

Dim strMemID

strMemID = Session("MemberID")

If strMemID = "" then 'If not any value

Response.redirect "http://www.websamba.com/cyberprogrammer/login.asp"

'We will open the login form

End If

%>

No comments: