Results 1 to 3 of 3
- 03-22-2009, 02:12 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 8
- Rep Power
- 0
problem with back button of the browser.
Hi.
I created a loginpage and after login it will display second page.In the second page logout button present.After clicking the logout button it displays the login page again.In the login page if i clicked back button it displays the second page again.But i dont want to display this page.
Can any one suggest me.
- 03-23-2009, 07:17 AM #2
here you have two easy possible options,
1.by invalidating the session using
session.invalidate();
2.by using java script disable the go back button!
- 03-25-2009, 07:41 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 10
- Rep Power
- 0
hi
This is a common problem. It displays the back page even the session is invalidate because the browser stores the pages as offline content, and displays the page from browser buffer.
To solve this problem add the following javascript in the logout.jsp where you invalidate the session.
<script type="text/javascript">
javascript:history.go(-1)
</script>
Similar Threads
-
Browser's back button refresh the pages
By hasansheikh18 in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 05-31-2011, 04:44 PM -
Back button
By Tokajac in forum Web FrameworksReplies: 1Last Post: 11-27-2008, 05:27 AM -
Disable the WebBrowser Back button
By Deepa in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 11-26-2008, 09:10 PM -
Problem with Midlet back button
By Poonam in forum CLDC and MIDPReplies: 5Last Post: 11-17-2008, 09:14 AM -
Warning: Page has Expired on click of back button
By bhupendra in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 08-27-2008, 07:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks