Hello there. I have a page that the user logs (entering userID and
password) in the main web site and then from there he can browse around. The
thing is that I want to prevent the user of opening a new window again (and
therefore loggin in twice). I am using session variables in order to control
the whole login process. Every time the user logs in I write the username in
the session variable. Then everytime a new instance of the browser is being
opened I am trying to get this value from the Session object but it is
always null. I guess there is a session for every browser because the value
I am taking every time is null. Is there any way in JSP to take the variable
of the session object from the previous created instance of the browser?
  And how can I delete the cached page so the user could not go back after
login out? The:

   response.setHeader("Cache-Control", "no-store");
   response.setHeader("Pragma", "no-cache");
   response.setHeader("Expires", "Sat, 01 Jan 2000 06:01:01 GMT");

does not work.

  Thanks in advanced.

   Panos
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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

Reply via email to