Hi mthalis,
maybe this will help:
http://poulwiel.blogspot.com/2009/01/browser-back-button-and-caching-problem.html
but to be honest i don't know if i understand Your problem at all.

Best greetings,
Paweł Wielgus.


2009/2/17 mthalis <dinesh_nade...@yahoo.com>:
>
> i have already implemented login, logout parts using struts(jsp). But the
> case is after logged out, when i press  back button it is redirected to the
> particular page that i was in before logged out. these are my codings, and
> plz kind enough to give me reasonable answer.
>
> //set sessions//
>        HttpSession session=request.getSession();
>        session.setAttribute("userName", userLoginForm.getName());
>
> //verify log or notMaybe
> <%
> String userId=(String)session.getAttribute("userName");
>        if(userId !=  null){
>  %>
>
>
> ///if not log
> <%
> }
> else{
>        response.sendRedirect("./index.jsp");
> }
> %>
>
> //logout
> <%
> session.removeAttribute("userName");
> session.invalidate();
> response.sendRedirect("./welcome.jsp");
>  %>
>
> --
> View this message in context: 
> http://www.nabble.com/session-management-tp22054409p22054409.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to