Hi, i wasn't able to understand Your problem, so i was thinking that the code You cited below was about the problem discussed on my blog. If it's not this problem than try to describe the problem in other words, i simply don't get it.
Best greetings, Paweł Wielgus. 2009/2/20 mthalis <dinesh_nade...@yahoo.com>: > > Give me another suggestion pz. > > > mthalis wrote: >> >> 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 not >> <% >> 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-tp22054409p22114881.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