faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : Session Variables

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

25 of 28 people (89%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How can I make sure a user doesn't access a page in the middle of my ASP application they haven't logged into?

May 22nd, 2000 06:56
unknown unknown, Ed Habal


You could check to see if they have a session variable and if it is 
empty redirect them to the main page

<%
response buffer=true
if session("name")=""
then response.redirect "mainpage.asp"
end if
%>



© 1999-2004 Synop Pty Ltd