struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Jouravlev <jmi...@gmail.com>
Subject Re: logout/Back Button problem
Date Tue, 15 Nov 2005 15:47:58 GMT
Firefox? Add "no-store":

response.setHeader("Cache-Control", "no-cache, no-store");

On the other hand, SSL + "no-cache" should work for Firefox as well, hmm...

On 11/15/05, Srinivas Jadcharla <jd2810@gmail.com> wrote:
> Hi There,
>
> I have a problem logging out my Struts Based Web Application.Here iam giving
> the code in Logout Action..
>
> request.getSession().removeAttribute("ssn");
> request.getSession().removeAttribute("pin");
> request.getSession().removeAttribute("parentrole");
> request.getSession().invalidate();
> response.sendRedirect("/login.jsp");
>
> Once it invalidates the Session iam redirecting the user to login page where
> he/she needs to sign in again.But problem is when user clicks back button in
> the browser its taking me to secured pages which i dont want.Iam using the
> following code in my secured pages but no use.
>
> <%
>
> response.setHeader("pragma", "no-cache");
>
> response.setHeader("Cache-Control", "no-cache");
>
> response.setDateHeader("Expires", -1);
>
> %>
>
> Iam not understanding where exactly iam doing the mistake.Some one please
> help me to sort it out.
> Thanks In Advance
>
> Srinivas
> 732-648-9421(Cell)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message