How to disable  browser back button after session logout..

Hi;
I want to restrict the user to use the back button after session expired or logout. By doing the session expired we are restricting the user to do any new work but I want to restrict the user to see the back pages that he surfed previously in the session.
Is there any method to disable the browser back button after the session Expired?
please help me to find out the solution..
Thanks in advance.
With Regards,
Haramohan

One possible way is automatic return to the current page by writing the following Javascript code to the previous page:
<script language=JavaScript>
function backButtonOverride(){
setTimeout("backButtonOverrideBody()", 1);
function backButtonOverrideBody(){
try {
history.forward();
} catch (e) {}
setTimeout("backButtonOverrideBody()", 100);
</script>
<%
catch(Exception e){
%>
<jsp:forward page="front.jsp"></jsp:forward>
<%
%>

Similar Messages

  • How to disable browser back button in Oracle ADF

    I need to disable browser back button in an ADF web application.
    The back button is not disabled but if I click it after visiting main page (e.g. from the page after main to the main page) it returns to the second page. I would to diasble the back button at all. Is it possible? If you know something specifically for ADF application (also without using javascript) the answer is welcome.

    see frank's reply in the post:
    Disable Browser Back Button
    hope this helps :)

  • Disable Browser back Button in OA page

    Hi Experts,
    Can anyone tell me how to disable browser back button in OA page.. Any advice would be appreciable.
    Thanks in advance,
    Sandip

    Hi Reetesh,
    Thanks for your reply but this code gives the following Error:
    non-static method getRootWebBean() cannot be referenced from a static context
    When I tried and kept the following code it solved error but did not work.
    OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
    String javaS = "javascript:window.history.forward(1);";
    bodyBean.setOnLoad(javaS);
    Thanks and Regards,
    Sandip

  • How to disable browser back in adf or task flow

    require: page1 can turn to page2 ,but don't let page2 turn to page1
    can we disable the browser back button by js?
    help...

    Hi OX,
    Have a look into this Re: Any way to disable browser back button?
    Regards,
    Suganth.G

  • How to Disable Browser Back & Forward Button ?

    Hi All,
    How can I disable Browser Back & Forward button in ADF Faces ?
    If Not, I remember reading somewhere that we can call a page with NO Browser button and Menu using Java script, how can I code this java script within ADF Faces ?
    Thank you,
    xtanto

    You might want to double check this solution in your application. Don't think that when the user presses the back button it simply doesn't go anywhere. It does go back to the previous page and the Javascript causes that page to go forward to the page that was just left. You can see this by putting some "alerts" in your pages.
    These actions my have consequences in your application.

  • Disable Browser Back Button

    Hi All
    I'm developing a web app using jdeveloper 11.1.1.4.
    In my web appication I want to Disable the browser Back button,
    Is there way to do this,
    Thanks
    Padma

    Hi,
    no, there is no option for this. You can try JavaScript as explained here: http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
    See: "Disable Back functionality using history.forward"
    Frank

  • Browser Back Button after Leaving Flash

    Hello -
    I am currently working on a site where a button in the flash takes you to an external link.   The user would like the browser back button, when you are on the external link, to take them to the page on the flash that was last viewed without restarting the flash.  Is this possible?  Thank you!

    Thank you very much!
    Heather R. DePriest
    Montana Grafix - Web & Graphic Design Services
    PO Box 817
    Chinook, MT 59523
    (406) 357-2394
    www.montanagrafix.com
    Email: [email protected]
    This message and its attachments may contain confidential and/or privileged material and is intended only for the person or entity to which it is addressed.  Any review, transmission, dissemination, or use of, or any action taken in reliance on, the material in this message is prohibited and covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521.   If you received this message in error, please contact the sender immediately and promptly delete the message from your system.

  • How to disable the back button when displaying a form

    Hi ,
    i have form A calling form B, when form B is displayed i want to disable the
    back button in the explorer so as not to allow the user from going back to
    form A.
    thanks.

    When you open a new window, call following javascript function also to disable the "back" button.
    window.history.forward(1);
    It will work.

  • How to disable browser back/forward buttons from JSF

    Hi,
    I am working on one JSF based project
    I have a requirement where I don't want the application users to go back/forward using browser back/forward buttons so I want to disable the browser's back/forward buttons for my application.
    Can anyone tell me how to do that?
    Thanks in advance.
    Regards,
    Vijay Kumar

    Hi,
    Thanks for your response on this.
    My problem is that I am opening the new popup windows using setOnLoad Handler in JSF like following:
    getTmpBody().setOnLoad("window.open(\"abc.jsp?grantId="+txtGrantId.getValue().toString() + "&sunId=" + empDetails_Global + "&tmplNm=" + aggrTmplName + "&ctryCode=" + ctryCode +"\", \"Agreement\",'width=800,height=600,scrollbars=yes');return false;");
    Now everytime I am going to any other tab or page, I am setting the setOnnLoad handler to blank like
    getTmpBody().setOnLoad("");
    Now the problem is when I open a popup window and close this and then click on browser back/forward buttons, the last opened popup window again come up. This is the problem since I don't want last opened popup window to get opened again on the click of a browser back/forward buttons.
    This is a very urgent issue and I need to resolve this asap.
    Please help me on this.
    Thanks,
    Vijay Kumar

  • SRM5.0 Catalog Std. Call Structure - Disable Browser Back Button

    Hi colleagues,
    we're on SRM5.0 and have the catalog configured as "Standard Call Structure", i.e. it is displayed in a new browser window.
    Is there away to disable the browser back navigation functionality, i.e. open the window without address bar and back navigation buttons?
    There doesn't seem to be anything in SPRO in order to control this.
    Thanks, Ulli

    Hi
    I think it is a settings of browser
    for eg
    internet explorer -> view -> tool bars -> standard tool bar (activate / inactivate )
    so you can not see backe button.
    br
    muthu

  • Disabling Browser back button

    Hi,
    Is it possible to disable browser's back button from Applet?

    There might be some way to clear the browser's history so there's nowhere to go back to. Or set the current document as the "previous" document. Or open up a new window without a toolbar, or without a history....etc
    In most cases though, it's a pretty nasty thing to do. Let the users control their own computers, and just have your software do its job.

  • Disable explorer back button (using JS)

    please tell me how to disable explorer back button, i have made a project and i want to disable explorer back button on signout button, tell me the code using java script

    The page that the browser goes back to would have to identify that it came from some place that was not right and redirect to an error page. This means you need all kinds of checking in every page. Of course, if a page has specific input requirements, it makes it easier, but you need a lot of state validation to keep track of these things. If back goes to a form submission page that already was submitted, you need to be able to track this and deny resubmission... But the browser will really be sending the same data from the original form. So you might have a hidden field with some unique ID that once used, can't be used again.
    In my current project, we have a check on all pages to redirect to login. Login uses Javascript to popup the actual login and application in a new window without menus and toolbars. This removes the back button. The user can still use the popup right-click menu to go back, but this is not a common thing for many users, and we have our pages designed in such a way as to facilitate going back when appropriate, but when not, they can't.
    In some ways, you have to trust that the user isn't going to go back when it's not appropriate... well, I might be dreaming here...

  • Disabling the Back button

    Hi
    How to disable the back button in the Internet Explorer in Java or Jsp or Servelts.
    Thanks in advance

    Why are you repeating the question? You posted the
    same question two days ago:Well, that was a long time ago. Technology has
    advanced since then and might have provided a
    solution.:)

  • Deactivate the back button when i logout

    I am creating webpage with login / logout. How to deactivate the back button when i logout. and clear cookies

    There is a hard fix for this...but i don't whether this is a current approach..
    Put the javascript in the head of the page
    history.go(1);
    This virtually disables the back button..i.e when you click the back button it immediately redirects to the present page..

  • Browser "Back" button - can it be disabled or detected when pushed?

    Is there any way to disable the back button in the browser or
    detect when it is pushed and redirect the application to a different page
    rather than moving back to the previous page?
    Specifically for IE6 & IE7.
    Edited by: burferd on Jun 25, 2008 11:01 AM

    burferd wrote:
    My search found a suggestion to include the following code in the <head> block of the page,
    but it does not appear to work, the back button is still enabled.This doesn't disable the back button, but this eliminates the default behaviour of the back button. Normally it loads the previously visited page from the browser cache (which might contain session data or expired data, which could lead to bad user experience), but if you disabled the cache, then it fires a new request to the server side to show the page so that the user is presented with new and accurate data.

Maybe you are looking for

  • XML Payload

    Hi All! What is the best way to exchange an XML content with FLEX app ? On a server side I have SAX Source, and right now I serialize it and pass it as a string to a FLEX app, that use new XML() to parse it. Is there are the better way to pass XML ?

  • Can I run two external displays off a MacBook?

    Hi there. I would like to run two external 20" Acer (VGA) displays off of my MacBook. I already use one 20" in addition to my MacBook screen but would like to have two full sized screens to work off and would not need the 13" from the MacBook. The Ma

  • Linking to a database

    I was wondering how to link to a database for holding account info. details.

  • How to devide the vedio into frames??

    Hi everybody; i want o capture a video from a cam. and convert this online video into images to process without STORING THIS VIDEO , can jmf do that??? and how??? thx in advance , Rofa.

  • Cursor location on jTextBox

    Hi, I need to know How can I reference the current location of the write cursor in a jTextBox or jTextArea so that I can for example select the two chars that are before the cursor, or insert some words in the place the cursor is located... Any help?