On Browsers refresh/ back button event   terminate user session

I have a problem pls help me to solve this.
Requirement is :
I need to catch browser's [b]refresh back button event.
Actually I need to terminate his session/login
when user clicks on browser's refresh button
and send user on Login page something like banking application(e.g. ICICI Bank) when u logged in ICICI bank side in between if u click on browser's refresh it shows message "Your session terminated " something like that.
So i want same functinality after user click on Refresh terminate his session

in my page i am inserting new data and updating existing data
so for inserting data againe page get submitted so for inserrion time alos these onload & Onunload events get fired
i tried this but still proble is unsolved..
give some more ways to solve this

Similar Messages

  • In place refresh, back button

    I am wondering if any one has tried to fix the "back button" issue when they use the inplace refresh option with a portlet. For those that dont know, when you are on say the third page of an application and you hit the back button, the user would expect it to go to the second page. Instead it goes to the page before you started clicking on the portlet. Let me know your thoughts everyone.

    We are facing the same issue, will appreciate any ideas on possible solutions.
    Thanks,
    Laura

  • Terminate User Session

    Hi all,
    I'm using FM TH_DELETE_USER to delete a user session, however this will terminate all sessions. Can anyone suggest a system function that will delete a specific user session?
    Thanks, Mark

    Hi ,
    TH_DELETE_USER kills the sessions of the user.But there is no FM to delete the particular session.
    But if you Debug SM50 you get some info.
    i tried it i got this...
         CALL 'ThWpInfo' ID 'OPCODE'   FIELD OPCODE_WP_DEL            
                         ID 'WP_INDEX' FIELD WP_TABL_ALV-WP_INDEX.    
    in this program <b>RSMON000_ALV</b> you can find the code .
    Regards
    vijay

  • Terminate user session api

    I need to write an app that allows a person to identify a user session and terminate it. Also, access manager may be clustered, so I'll need a way to access each machine name to check for sessions.
    Could someone point the way to which api methods I should check out?
    Thx.

    I know AM can do it... but the users won't have direct access to AM... that's why I need to figure out if any of the library API's allow access to that feature.

  • Invalidate session when user clicks back button

    I want to invalidate the session when user clicks back button, so that user cannot refresh and reload a page.
    Any suggestions will be highly appreciated.
    Message was edited by:
    sam_amc

    * SessionInvalidator.java
    * Created on October 27, 2006, 9:18 AM
    package web;
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * @author javious
    * @version
    public class SessionInvalidator extends HttpServlet {
        /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
         * @param request servlet request
         * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            String reposted = request.getParameter("reposted");
            if("true".equals(reposted))
                HttpSession session = request.getSession(false);
                if(session == null)
                    // This is step 4 and beyond
                    out.println("<html>");
                    out.println("<head>");
                    out.println("<title>Servlet SessionInvalidator</title>");
                    out.println("</head>");
                    out.println("<body>");
                    out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                    out.println("I said, your session is now invalid! Now where are those Duke Dollars at?");
                    out.println("</body>");
                    out.println("</html>");
                else
                    Integer hitCount = (Integer)session.getAttribute("hitCount");
                    if(hitCount == null)
                        // This is step 2 (the "good" - "stay" page.)
                        out.println("<html>");
                        out.println("<head>");
                        out.println("<title>Servlet SessionInvalidator</title>");
                        out.println("</head>");
                        out.println("<body>");
                        out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                        out.println("Your session is good.<br>");
                        out.println("If you click the browser's back button, you will invalidate your session.");
                        out.println("</body>");
                        out.println("</html>");
                        hitCount = 1;
                        session.setAttribute("hitCount", hitCount);
                    else
                        //We've used up our good visit
                        session.invalidate();
                        // This is step 3
                        out.println("<html>");
                        out.println("<head>");
                        out.println("<title>Servlet SessionInvalidator</title>");
                        out.println("</head>");
                        out.println("<body>");
                        out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                        out.println("Your session is now invalid");
                        out.println("</body>");
                        out.println("</html>");
            else
                // because the javascript in the following output will never allow a user
                // to continue clicking back any further than this, we can safely create the session.
                // (or perhaps the session can already be created here and this may not be necessary).
                // A problem lies where if the user chooses to "select" a page back in history they thereby
                // potentially skip back "over" this functionality, thus defeating the purpose of it.
                request.getSession(true);
                // This is step 1 (indirection)
                out.println("<html>");
                out.println("<head>");
                out.println("<title>Servlet SessionInvalidator</title>");
                out.println("</head>");
                out.println("<body onload=\"document.getElementById('invalidatorForm').submit()\">");
                out.println("<h1>Servlet SessionInvalidator at " + request.getContextPath () + "</h1>");
                out.println("<form id=\"invalidatorForm\" action=\"SessionInvalidator\" method=\"POST\">");
                out.println("<input type=\"hidden\" name=\"reposted\" value=\"true\">");
                out.println("</form>");
                out.println("</body>");
                out.println("</html>");
            out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }The problem with even attempting to do this is that with today's browser capabilities, users can optionally choose to jump to a particular page in the browser history and this may not necessarily be the most recent page. In this case, you would also want to invalidate the user's session after already having been there (whatever page that may be). Then you have situations when the user may wish to jump back in history to external pages they were visiting before they reached your own site's pages. Then what happens when they start clicking forward, forward, etc... from there? This is why I prefer writing Swing Clients as alternatives to browser applications. There are soo many possible ways break web applications made for standard web browsers both maliciously and simply by accident or irregular user patterns. Regardless, this servlet would work based on the assumption that all the user(s) would "ever" do aside from moving logically forward is clicking on the browser's "back" button.
    cheers!
    Message was edited by:
    javious

  • How to get login page when user clicks on browser's back button

    Hi,
    I am using struts framework.
    I have set property nochache=true in response header of all pages.
    So, browser does not caches my pages.
    Now,when I am clicking on browser's back button, I am getting following message..generated by browser.
    Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
    To resubmit your information and view this Web page, click the Refresh button.
    Instead of that I want to show user a login page, when it clicks on back button.
    Can anyone help me?

    Hi,
    I agree with your suggestion.But my query is,
    If you have seen many credit card or banking websites,generally when user clicks on browser's back button,its redirectly user to login page of it for security reasons.
    I want to implement that kind of functionality.So need help on that point

  • TS 4.1 User Interface Forward/Back Buttons

    I'd like to the add the Forward/Back Buttons to my User Interface similar to those in the Sequence Editor. I use a modified version of the Full Featured UI on the production floor and often switch to editor mode to work on the sequence. I find it very cumbersome not to be able to jump back and forth between Sequences while doing so.
    Were the buttons created using the "Editing Class" proporties and methods to build a stack of recently selected sequences?  Or are the buttons already existing with the methods simply needed to be called?
    Any suggestions how to impment this functionality while in edit mode? 
    Thanks

    "but keep in mind that the UI is not meant for developing. It instead was designed with operators debugging in mind."
    I don't agree with that. The UIs are fine for developing if they meets your needs. If not, then you have to weigh using the sequence editor, which is not nearly as customizable, vs the cost of reimplementing whatever you can't do without that the sequence editor already has.
    Note that most of the things that are missing from the UIs would take a fair amount of effort to re-implement (type editing, ...). If there were already simple-user-ready-drop-in-components for the missing features, we probably would have already included them in the UIs.
    We want the UIs to be functional, but the top priority is that they be simple enough such that they can be readily modified.
    Note that in some cases there are apis to support features that aren't in the UIs, but there isn't a complete control that wraps everything. For example, Engine.SearchFiles() is a huge amount of the implementation for find-and-replace, but there currently isn't a user callable dialog for invoking it or a user accessible control for automatically browsing the results, thus we don't currently include that feature in example code for the UIs. I don't know the specifics of forward/back, so I'm not sure how much of the implementation is exposed as public APIs, beyond the goto-location functionality (see Locations.GotoLocation, ...).
    - James

  • Back button of browser

    hi,
    i have built an application and want to disable back button for the user. how can i do it
    Thnx,

    You can't doing it using Java.
    You can override the history.back event with history.forward in JavaScript (which has nothing to do with Java) or you can simply not show the nav bar. Which doesn't mean the user couldn't use the backspace key instead...
    Short:
    - you're wrong here
    - you can't

  • Branching and Using the 'Back' button

    I have created a branching program that is essentially a
    "choose-your-own-adventure." There is no quiz, b/c there is no
    right or wrong.
    However, when you begin you have three choices. The user
    selects one of those choices and goes to Slide A, Slide B or Slide
    C depending on their choice. There, they have more choices to make.
    From Slide A, their choices would take them to Slide D, Slide E or
    Slide F. If they originally chose Slide B, the next set of choices
    would also be Slide D, as well as Slide G or Slide H.
    (And so on and so forth)
    It has been recommended to me that I create a way for users
    to simply hit the playbar's "back" button if a user is on Slide D,
    and wants to go back to Slide A. However, under my current set-up,
    I have two problems: The first: if they simply hit the back button
    on the slidebar from Slide D, they will go to Slide C--a
    acompletely wrong choice. Secondly, if I put a "Jump to" button on
    the page, I actually have to put 2 on (one that will bring them to
    Slide A and another that will bring them to Slide B) since you can
    get to Slide D from both A and B.
    This is a simplified version of my branching, and creating a
    button for each page that a slide could go back to isn't feasible
    and would probably be more confusing to the user than anything.
    Please tell me if this doesn't make sense, or if there is a
    way that I can do this.
    To see the project and see what I'm talking about, you can go
    Here,
    and then choose the "Is My TV Ready?" option.
    Thank you,
    Rob

    Hi Rob
    Had a look at your program and think it is a great use of
    Captivate.
    Regarding the "back" functionality, I would recommend to
    custom build a button on each slide where you wish to go back. The
    reason is that the back button on the play bar will always go back
    1 slide in the actual slide sequence and does not take branching
    into account i.e. it is a pure linear back 1 button. To make life
    easier, I would suggest giving each of your important slides a
    unique label, which would then make it a lot easier to:
    Specify where the individual "back" buttons would jump to
    View the actual branching in teh Branching view of Captivate.
    Good luck mate
    Andrew

  • Urgent ...problem with back button in my browser

    hello,
    i created one login.jsp file and wellcome.jsp file and one logout.jsp file and one login controleservlet.If i login once i got wellcome page.In that i have logout button, and if i will click that button
    it will display logout successfully message on browser.my requirement is that after i will get logoutsuccessfully message i want to avoid back button in my browser.if i click back button then it will display an error message like "your session expire".
    please send the reply as soon as possible.

    I'm not certain of whether you want to disable the back button in the user's browser or you want to avoid this error message...
    Assuming you want to avoid the error message entirely, I would set a variable in the session scope when the user logs in and any time you don't see that when you process a request in your servlet, redirect the user to the login page.
    If you're looking to simply disable the back button in the browser, beyond asking the user nicely not to click the back button, good luck to ya. :)
    Hope this helps!
    - Kyle

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

  • Firefox was a good, but now it's slow and when I search google I have to refresh the page when I click the back button. This is driving me to other browsers.

    When searching in goole, If I click on a link and want to go back a page firefox does not load the previous google search without refreshing the page. Because I use google frequently this is very annoying. Firefox has also been freezing and crashing most frequently of any of the other browsers that I have been driven to use. I'm not sure why I should keep it on my computer at this point.

    Regarding the Google results page blanking out when you go back, this occurs when using a combination of three settings, which may be fairly common:
    * Zoom level higher than two steps (120%; the newest versions of Windows apparently default to 125%, which Firefox detects and adopts)
    * Google search set to instant prediction results (default on Google search, but can be disabled in Search settings, see [https://support.google.com/websearch/answer/186610 Google Instant Search Help])
    * Opening results in the same tab, then using the Back button to return to the results page (default on Google search, but can be changed in Search settings to open results in a new window/tab, see [https://support.google.com/websearch/answer/425 Google Search Help])
    Firefox's cache feature attempts to maximize speed for forward and back actions by storing the last rendering of the page. Something about the instant prediction results ''with zoom'' is causing Firefox to briefly display the results and then they blank out and you have to reload the page to get them back. The mystery is why this only occurs (so far as I have heard) on Google? Is one of Google's scripts blanking out the page? Does Google care that it's messing up Firefox users?
    For now, if you do not want to or cannot change any one of the three factors needed to experience this problem, you can disable the storage of the last rendering of the page. Then Firefox will skip the shortcut and lay it out fresh, which is known to work. As noted in earlier posts, you make this change using the about:config preferences editor.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered.
    (3) Double-click the '''browser.sessionhistory.max_total_viewers''' preference and change it to 0 (that's a zero).
    This thread has a lengthy discussion: [https://support.mozilla.org/en-US/questions/970863 When I go back to Google search results page, it takes me to a blank Google screen].

  • After user logout, browsers back button is still working

    when the user logout, after clicking the back button we can see the application.
    Can anyone suggest me how to stop this.

    which means the browser has cached your page (if IE your setting for check for newer versions of pages is probably automatically ). You need to expire your pages , if you dont want this to happen (either you have to set expiry headers in code, or you can do it on your webserver if you have a webserver fronting weblogic) or live with this behavior (you may have noticed that bank sites ask you to close your browser for added security for this purpose.
    Alternately if you want to simply stop a majority of users you should change the logout to a post and perform a redirect after logout to the next page (so that back will redirect again to the same). Users would have to know to click back button twice, but this behavior is annoying

  • Old topic: Refresh when user click back button

    Yes yes, i know, this is old topic, which already discussed thoroughly in the forum,
    But, pls read my question....
    i try this:
    res.setHeader("Cache-Control", "no-cache");
    res.setHeader("Pragma", "no-cache");
    res.setDateHeader("max-age",0);
    res.setDateHeader("Expires",0);
    res.addHeader("Cache-Control", "no-store");
    However, when i forward to a page, then click back button to the previous page, which have the code above, however, the page is still the old one, the page was not reloaded from server
    Any suggestion? 1:57 am, my local time.......

    I just use:
    response.setHeader("Pragma","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setDateHeader("Expires",0);I have tried this, still the same...what can i do? Any more workable solution?

  • My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is a

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/688252]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    My back button and refresh button and my yahoo tool bar are dimmed a lot when I open up firefox. So as a result, I cannot use the back button nor my refresh button AND my yahoo toolbar disappears a lot. I have tried to get on your chat session but it is always closed. I need one on one help. Please reply with resolution.
    == This happened
    ==
    Every time Firefox opened
    == two or three months ago
    ==
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 (BT-canvas) Firefox/3.6.3 GTB7.0 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-npdnu
    *npdnupdater2
    *Coupons, Inc. Coupon Printer DLL
    *Coupons, Inc. Coupon Printer Plugin
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *BrowserPlus -- Improve your browser! -- http://browserplus.yahoo.com/
    *Shockwave Flash 10.0 r45
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.50106.0
    *My Web Search Plugin Stub for 32-bit Windows
    *Google Updater pluginhttp://pack.google.com/
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll

    * If the menu bar is hidden then press and hold the Alt key down, that should make the Menu bar appear (Firefox 3.6 on Windows) (see [[Menu bar is missing]]).
    * Make sure that you have the ''Navigation Toolbar'' and other toolbars visible: View > Toolbars .
    * If items are missing then see if you can find them in the View > Toolbars > Customize window.
    * If you see the item in the Customize window then drag it back from the Customize window to the Navigation toolbar.
    * If you do not see that item then click the Restore Default Set button in the View > Toolbars > Customize window.
    See also [[Back and forward or other toolbar buttons are missing]] and [[Navigation Toolbar items]]
    See http://kb.mozillazine.org/Toolbar_customization

Maybe you are looking for

  • How to add additional tab or fields in ME21n

    Hi all. I included some fields in EKKO table. I want to add these fields in ME21n, ME22n, ME23n Header screens. How to add? I can't find screen exit and user exit. Plz, let me know how to do in detail. Regards, nam Message was edited by:         Kil

  • Tables for open PO quantity

    Dear all In which Standard Tables (table entries) do I find the open quantity for POs ( balance to be delivered) , i am using the following kind of POs. 1. Normal PO(NB)- vendor procurement 2. Subcontract PO (NB) 3. Stock transport PO betn plants (UB

  • Need camera raw 6.7 so I can open CR2 files from my Canon 5d mark iii

    I purchase PS CS5 and says my camera is compatible and it will not open up the CR2 camera raw files from my canon 5D Mark iii camera. I used it in the past, and up graded my hard drive to MAC OSX 10.9, purchased new PS CS5 and Adobe will not update t

  • How to change color of a line on a graph

    Bonjour à tous, I want to change the color of line in a graphic, but i dont know how to do. Thanks for your answer Ivan

  • Public site manager

    I need to edit my original application for public site manager. How do I do this?