tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesan, Prasanna" <>
Subject session persistence
Date Thu, 03 Jun 2004 11:04:11 GMT
I am using Tomcat 4.1.30. I have the following code in logout.jsp

response.setHeader("Cache-Control","no-cache, post-check=0, pre-check=0");
    response.setHeader("Expires", "Thu, 01 Dec 1994 16:00:00 GMT");
    response.setHeader("Pragma", "No-cache");
    response.addHeader("Cache-control", "no-store"); // tell proxy not to cache
    response.addHeader("Cache-control", "max-age=0"); // stale right away
    response.setDateHeader("Expires", -1);  // Prevents caching at the proxy server
    //session = request.getSession(false);
    if(null != session){

After this page opens and I hit backbutton and navigate through the pages, i still have the
session values of user and pass available. I set the session values using sesssion.putValue()
method. I tried setAttribute() method also but dosent seem to work. Could anyone pleease let
me know what iam missing. I also tried session.setValue("user",""); but didnt help the cause.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message