If you use a bean, say loginObj, with session scope once the login is
complete, then on the other pages check for

if loginObj == null

        do your sendRedirect here

-----Original Message-----
From: Gael Stehagen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 09, 2000 10:40 AM
To: [EMAIL PROTECTED]
Subject: Sessions...


I'm wondering what the best way is to restrict access to some pages.
If a user tries to access a page that requires authentication, he should
be redirected to a login-page, unless he's all ready logged in.

How do I manage this in best way?
Thanks
Gael

--
************************
Gael Stehagen
[EMAIL PROTECTED]
0708-882910

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to