HI,
set a flag (lets say "isLogged") in session in login page to true when you
have verified the login name. then if user wants to go to any other page
(which require him/her to login first), Simply check for the true value of
"isLogged" flag. if the value is true and not null .... then allow the
display of current page else ... redirect the flow to login page or some
error page.
I hope this will help.
:)
Yours Sincerely,
Jabran Asghar
-----Original Message-----
From: Thuy Murphy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 1:12 AM
To: [EMAIL PROTECTED]
Subject: Check security for userID & password
I need help on how to keep user id & password so I can check to make sure if
somone select a page without login it will display login page and ask the
user to enter user name & password. I know that we can keep them in session
(how?)... I also know the session will be expired in 30 minutes or so... If
you know how to solve this problem, please reply the answer I will be
appriciated.
Thanks in advance!!
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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