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-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

Reply via email to