-
September 26th, 2012, 04:10 AM
#1
Back button is working after logout the application?
I am developing one application using jsp and spring.In this application,After click the logout button,it is redirected to login page.Then If we click on backbutton(or backspace), it is going to previous page.How to avoid this?
-
September 26th, 2012, 07:30 AM
#2
Re: Back button is working after logout the application?
Hello Sri,
If you wnt to stop the navigation from page 2 to page 1 ,then place the following piece of code in your page1.
<SCRIPT type="text/javascript">
window.history.forward();
function noBack() { window.history.forward(); }
</SCRIPT>
</HEAD>
<BODY onload="noBack();"
onpageshow="if (event.persisted) noBack();" onunload="">
It redirects your control to page 2 rather taking you to page1.
Regards,
Kartik.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|