Dear sir,
I am Chandan Prakash.I am applying logout fuctionality using struts1.1 but i am facing a problem whenever i click on the browser back button i come to the back page once again.
I used the following lines of code to implement logout functionality:
HttpSession session=request.getSession(false);
session.removeAttribute("user");
session.removeAttribute("password");
session.invalidate();
return mapping.findForward("logoutSuccess");
Please help me to solve the problem that i am facing.
Thanks.
when i have log out, then if i click the back button of the browser it goes to the previous page with the displaying the content. how can i avoid that?
If someone clicks the back button then the browser takes him to my login page even after logout..... there is option in javascript to disable the back button...bt if someone disables javascript then he can easily get into my login page again....so what should i do??? plz do reply....
class A{
protected int i;
}
class B extends A{
}
class C extends B{
}
// how to initialize the A class variable in class C without creating the instance of A....
Problem facing on Logout functionalityChandan Prakash July 29, 2011 at 12:12 PM
Dear sir, I am Chandan Prakash.I am applying logout fuctionality using struts1.1 but i am facing a problem whenever i click on the browser back button i come to the back page once again. I used the following lines of code to implement logout functionality: HttpSession session=request.getSession(false); session.removeAttribute("user"); session.removeAttribute("password"); session.invalidate(); return mapping.findForward("logoutSuccess"); Please help me to solve the problem that i am facing. Thanks.
learning java programing Rajashekhar September 21, 2011 at 5:28 PM
I heard this is the best site for learning programming
after logoutrushan November 16, 2011 at 6:41 PM
when i have log out, then if i click the back button of the browser it goes to the previous page with the displaying the content. how can i avoid that?
jar filesAnand December 27, 2011 at 4:57 PM
Can u please send us jar files for above project
struts matirialMahesh December 28, 2011 at 6:21 PM
roseindia is providing good info.
Struts developerMahesh December 28, 2011 at 6:27 PM
i want struts example application with business logic can any one provide..
logout in struts2aditya June 9, 2012 at 8:58 PM
If someone clicks the back button then the browser takes him to my login page even after logout..... there is option in javascript to disable the back button...bt if someone disables javascript then he can easily get into my login page again....so what should i do??? plz do reply....
javaprakash August 6, 2012 at 11:21 AM
it is not running on my tomcat server.
Help Me...cherryHYD November 19, 2012 at 10:17 AM
class A{ protected int i; } class B extends A{ } class C extends B{ } // how to initialize the A class variable in class C without creating the instance of A....
Post your Comment