Classic ASP BasicsFor beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I m writing a mailing appln, now whenever user presses Logout button he should nt be allowed to view other pages, this is happening in my appln,so I don't know where to write session check.
Can anybody...pls.
Thankx in advance.:)
Waht I do:
1..Upon login assign thier userID to a session variables:
Session("AuthUserId") = Users("ID")
2..Now in the head of every page that requires logged on status place:
3..Inside checkLoggedOn.asp do something like:
<%
IF Session("AuthUserId") = "" THEN
response.redirect("gotKickedOut.asp")
END IF
%>
This way no user will access any page that requires them to be logged on. Especialy if they type a known page name in to the browser.