Results 1 to 3 of 3
  1. #1
    shivakumari is offline Member
    Join Date
    Mar 2009
    Posts
    8
    Rep Power
    0

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

  2. #2
    kattavijay's Avatar
    kattavijay is offline Member
    Join Date
    Jan 2009
    Location
    Hyderabad,india
    Posts
    21
    Rep Power
    0

    Default

    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!

  3. #3
    khadaree is offline Member
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    0

    Default 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

  1. Browser's back button refresh the pages
    By hasansheikh18 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-31-2011, 05:44 PM
  2. Back button
    By Tokajac in forum Web Frameworks
    Replies: 1
    Last Post: 11-27-2008, 06:27 AM
  3. Disable the WebBrowser Back button
    By Deepa in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-26-2008, 10:10 PM
  4. Problem with Midlet back button
    By Poonam in forum CLDC and MIDP
    Replies: 5
    Last Post: 11-17-2008, 10:14 AM
  5. Warning: Page has Expired on click of back button
    By bhupendra in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-27-2008, 08:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •