Record "logout" on Browser close

Is there a way to record a browser close? We're trying to track user's time inside the application. I've already instituted a trigger to catch the login and record, but unless the user actually uses the logout link in the application, I am stuck. Is there a way to activate a PL/SQL code snippet when the browser is closed? Can I institute this on Page 0?

You could use some javascript to catch the window.onbeforeunload event, but that is kludge to say the least... I believe there is a plugin for APEX 4.0 that might help here...: http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/skillbuilders-save-before-exit_43.html
They claim it will handle the browser closing as an event.. So you could use this to catch them closing the browser..
Thank you,
Tony Miller
Webster, TX
I don't know what your problem is, but I bet it's hard to pronounce.
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • Pinned app tabs don't logout on browser close

    Pinned app tabs are restored on browser restart, however I have gmail pinned, with save passwords disabled, and still when I close the browser, it automatically logs in.
    I tried it with private browsing, disabling cookies, deleting cookies on browser restart... still the same.

    I was just trying to fix this too. I found a solution here: https://support.mozilla.com/en-US/questions/810049
    You need to change the about:config option ''browser.sessionstore.privacy_level''. The link suggests '2' (store nothing) but '1' (only store for non-https) will also work.

  • Capturing browser close event

    Hello everyone,
    Even though this question has been answered before, I find that none of the answers seem to work for me.
    My problem is the following: Locks are placed on records and tables at certain points in my application. But if the user simply closes the browser without closing the application properly, all the locks are still in place. So I need to catch an event that allows me to ABAP my way out of this.
    I have the following BSP page which loads my application:
    function startBSPApplication()
    function endBSPApplication()
      <frameset id="<%=guid %>_FRAMESET" rows="*,0" onload="startBSPApplication('<%=guid %>_A');" onunload="exitBSPApplication();" noresize framespacing="0" frameborder="0" border="0">
        <frame name="<%=guid %>_A" src="session_default_frame.htm">
        <noframes>This browser does not support frames.</noframes>
      </frameset>
    The start and end functions simply start and end a session, and I find myself unable to actually call an ABAP function in there. All ABAP code placed inside the javascript functions is called everytime the page is loaded, not everytime the function is called and that's not what I want.
    I also already tried the <bsp:htmlbEvent> tag, but I couldn't get that to work either. I tried it like this:
    Notice however that I wrote this on top of the frameset. Does this mean that the onunload event will be called twice and does this cause a problem?
    I tried to call the onDestroy event from within my endBSP function, but nothing happened either.
    <htmlb:content design="design2003" >
      <htmlb:page title="Capture browser close " >
        <htmlb:form>
          <bsp:htmlbEvent id      = "myid"
                          onClick = "onDestroy"
                          name    = "onDestroy"/>
          <script for="window" event="onunload"  type="text/javascript">
               alert('Starting the Server Event');
               onDestroy();
           </script>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Does anybody have another suggestion, or notice me overlooking something?
    Thank you in advance,
    Niels.

    Hi Eddy,
    I can't find anything really helpful in that blog. Except maybe adding the onbeforeunload attribute to my frameset and calling a JS function to back it up.
    The problem still persists that any ABAP you put in a JS function is executed regardless of wether or not the function is actually called.
    I need to get to my DO_HANDLE_EVENT somehow when the user closes the window.

  • Avoid browser close before quiz finish

    Hi
    i have created one Quiz web application using VS 2008 and i have set 10 min time using timer control to finish the quiz. User should not close the browser before he finishes the quiz within 10 min. After 10 min he can able to close browser close button or
    logout.
    How to achieve this using C# and asp.net. If anybody knows, please reply me.
    Thanks in advance.

    Hello san456,
    Please post ASP.NET related question to http://forums.asp.net/
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Trouble detecting browser close in Internet Explorer

    Please help!
    I'm trying to detect when the browser closes (or tab closes, or page reloads, etc.) so that I can save user information. I've followed the advice of others on the web, and have it working with Firefox, but not IE. The code in my wrapper is below, which attempts to get access to the embedded swf object a variety of ways to presumably handle multiple browsers. PLEASE HELP!
    //  Function to get a reference to the embedded swf file
                        function getFlashMovieObject(movieName)
                          if (window.document[movieName])
                              return window.document[movieName];
                          if (navigator.appName.indexOf("Microsoft Internet") == -1)
                            if (document.embeds && document.embeds[movieName])
                              return document.embeds[movieName];
                          else // if (navigator.appName.indexOf("Microsoft Internet") != -1)
                            return document.getElementById(movieName);
    Here's the code that calls this function:
                        window.onbeforeunload = function() 
                            var myApp = getFlashMovieObject("MySwf");
                            return myApp.onCloseApplication();
    Here's the code that embeds the swf:
                      var flashVars = {};
                      var strHref = window.location.href;
                      if ( strHref.indexOf("?") > -1 )
                            var strQueryString = strHref.substr(strHref.indexOf("?")+1);
                            var aQueryString = strQueryString.split("&");
                            for ( var iParam = 0; iParam < aQueryString.length; iParam++ )
                                var aParam = aQueryString[iParam].split("=");
                                flashVars[aParam[0]] = aParam[1];
                    var params = {};
                    params.quality = "high";
                    params.bgcolor = "#ffffff";
                    params.allowscriptaccess = "sameDomain";
                    var attributes = {};
                    attributes.id = "MySwf";
                    attributes.name = "MySwf";
                    attributes.align = "middle";
                      //create your instance of your SWF
                      swfobject.embedSWF("MySwf.swf", "flashContent", "100%", "100%", "10.0.0", "expressInstall.swf",
                        flashVars, params,attributes);

    To make the hyperlinks in PDF file work, do the following:
    Open your Adobe Reader
    Then select Edit à Preferences… from the Action Bar.
    To make the links active, select Documents (under Categories).  On the right side, now under PDF/A View Mode, using the drop-down change  “Only for PDF/A documents”  to  “Never”.   Now click the OK button.

  • Lumia 520-Internet Explorer & UC browser close aft...

    Hi,
    I am using nokia Lumia 520 since 15 days, I am facing problem with browsing. Both internet explorer & uc browser close abruptly in the middle of browsing after browsing for sometime. If anybody knows the solution for this problem plz let me know

    have you checked you are up to date with the latest firmware for your device and that you are up to date with Nokia apps from the Store? also try performing a soft reset.

  • Result recording configuration with automatic close indicator

    Hi Guys,
    I was testing this automatic result configuration in my system.
    I selected the u201C1u201D (i.e. Automatic Close) Recording Configuration indicator on the plant level in SPRO > QM > Basic Settings > Maintain Settings at Plant Level> plant > Result recording tab > Recording configuration > maintain Automatic Close.
    Next, I entered the three user parameter ID QAE, QAN, and QAS in the user parameter SU3. However, I leave the parameter value for these three ID blank as I donu2019t know what to put in.
    During result recording, I tested this MIC characteristic on both reject and accept scenarios (i.e. fall under lower/upper limit, and fall outside lower/upper limit). To my surprise, nothing happens. In another word, there is no automatic close incurs on the inspection characteristics (i.e. both the accepted and rejected checkbox still remain unchecked even I navigate around, and hit the u201Ccontinueu201D, u201Cbacku201D, or u201Csaveu201D button).
    Further, I have fulfilled the following prerequisite as specified in the SAP help portal on this topic:
    1 - The inspection scope is fixed scope of this MIC.
    2 - I entered the target sample size (i.e. both the value in the u201CInspectu201D and u201CInspectedu201D field is similar).
    3 - I think I should have the authorization because I have entered the three parameter IDs on the SU3.
    May I know what is wrong?
    Can it be the parameter values for the three parameter ID are blank in my SU3? If so, what value I should enter for these three param ID? If not whatu2019s going wrong?
    Thanks
    YY

    Hi Gajesh,
    For some reason, it doesnu2019t work.
    I think I will tell my guys to perform manually pressing the Lock icon button to force it to valuate and also become status 5, since this the two valuation checkboxes, i.e. accept and reject checkbox is either ticked correctly according to the sampling plan setup in the sampling schema.
    Further, I donu2019t see why this extra manual step is so difficult for my worker.
    Thanks for your help
    YY

  • Call Webservice/API during browser close event

    Hello,
    I am using JDEV 11g. My application catches the browser close event to call a return Task Flow.
    I am wondering if its possible to call a webservice/API during the same event.
    Thanks
    Padmapriya

    Probababy too late to ask .. did u manage to get this resolved.
    I am not able to call any server Listeners during browser close event ...
    Details here -Re: Calling an ActionListener on browser window close using JS event queuing

  • Detect Safari browser close with the iPad 3

    Detect browser close with the iPad 3
    We have a web site being used on the iPad 3 through Safari.
    Our web site is used in a public setting and multiple users login to use it at different times. We have a questions about user account security.
    When a signed in user clicks the home button on the iPad , which minimize Safari and returns them to the home screen, can the user be signed out of our web site? We don’t want someone else to come and open the Safari browser and have access to the previous user's account information. Is there a client-side event that is triggered that we can handle so we can log the user out of the site?

    Is the iPad shared by everyone at this public setting?
    There is currently no way to handle different users on the iPad (or any iOS device).
    They are designed as single user devices.
    If your company is eligible for an Enterprise account, then you could write an app that could handle clearing user credentials but not in the current "normal" environment.

  • Browser close button / unload event

    Hi,
    In Ie8 session is carrying when i close the browser using X button. Is there any way to capture this browser close button or any portal unload event.
    Thanks
    Manu

    There is no clean way to do this. The only way i know of is to have a private global javascript variable true/false (true = show the popup, false = show popup) where the default value is true. On every click of link / form submit where you need the popup to be suppressed , set the value as false. (you can do this using a js library which can attach events to onsubmit, onclick of all links)
    However the behavior you are proposing is really , really annoying (as a user), consider your interface before implementing something like this. Valid usecases are prompting the user to save changes before leaving the page, not you are leaving the website (Thats why i typed something or closed the browser)

  • Can Flex detect browser close event?

    Is Flex notified by the browser when the browser is closed
    (or browser tab)? I need to be able to save any unsaved data in the
    application before the browser closes.
    Thanks in advance

    Thanks for your reply.
    I found a good example that I followed and got it working:
    http://flexblog.faratasystems.com/?p=134

  • Catching browser close event and showing my own popup

    Hi,
    I want to show my own warning popup on browser close event. Kindly help me with the solution.
    Thanks a lot in advance.
    Lavanya.

    Lavanya,
    I don't think you could show a ADF Popup during the onload event. Instead, you could use javascript's confirm method to prompt the user to choose what they want to do and perform that operation accordingly.
    Ex :
    jspx code
       <af:document id="d1" onunload="performUnloadEvent" clientComponent="true">
                <af:resource type="javascript">
                  // For Mozilla and Firefox
                  if(window.addEventListener){
                  window.addEventListener('beforeunload', function (event) {
                    showConfirm();
                  // For IE
                  else if(window.attachEvent){
                       window.attachEvent('onbeforeunload', function (event) {
                    showConfirm();
                  function showConfirm(){
                          var eventSource = AdfPage.PAGE.findComponentByAbsoluteId('d1');
                          var sel = confirm("Are you sure you want to exit?");
                        if(sel==true){
                            alert('Perform OK Operation');
                            var x = AdfCustomEvent.queue(eventSource, "handleOnUnload", {result : 'ok'},false);
                            var y = 0;
                        else {
                        alert('Perform Cancel Operation');
                         var x = AdfCustomEvent.queue(eventSource, "handleOnUnload", {result : 'cancel'},false);
                         var y = 0;
                </af:resource>
                <af:serverListener type="handleOnUnload" method="#{UnloadHandler.onUnloadHandler}"/>
                <af:form id="f1" clientComponent="true">
                </af:form>
            </af:document>onUnloadHandler method in bean
        public void onUnloadHandler(ClientEvent clientEvent) {
            System.out.println("Unload Event fired..");
            String outcome = clientEvent.getParameters().get("result").toString();
            if(outcome.equalsIgnoreCase("ok")){
                System.out.println("Outcome is OK ");
                // Perform some operation like Commit;
            else if(outcome.equalsIgnoreCase("cancel")){
                System.out.println("Outcome is Cancel ");
                // Perform some cleanup operation like Rollback;
        }-Arun

  • Browser Close Event

    Hi,
    I want to track Browser close event in EP to close all the sessions of the user.
    Plz guide me with detailed steps.
    Thanks in advance.
    Regards,
    Priya

    Hi search for "Browser close event" in google.
    Result: there is no such thing. You can do something with onbeforeunload but that might not work for all browser.
    Kai

  • Browser close/raise exception after installing Froms/Report Services

    Hi,
    I have iDS10g R2 recently I have installed Form/report Services(AS) 10g R2 but when I try to open a default/test page on one PC is raise Java exception
    Java.lang.classnotFoundexception Oracle.forms.engine.main
    and on Second PC browser close automatically without any exception(with Forms/Report Services 10gR2 I have Jinitiator1.3.1.22, someone plz help me.
    Many Thanks
    Khawar
    Message was edited by:
    S. Khawar

    when we are accessing the server for the first time thru the URL, the client browser automatically downloads required jinitiator. If your client browser is facing the problem that you described, then replace the symcjit.dll file that already exists in the machine with symcjit.dll, from the machine, where it is working.
    The same issue was resolved for us by doing so...

  • IPlanet Messaging Server -- kill session at browser close

    iPlanet Messaging Server 5.2 HotFix 2.09
    We found a potential security risk.
    When a person loads Messenger Express through the web and closes their browser, another person can come in behind them and resume the previous persons session. This is accomplished by going through the browser history and accessing any of the links that point inside the mail client.
    When the browser closes, the session isnt killed. Its only killed/inaccessible if the user times out or clicks log-out. We've tested this on just about any browser we can get our hands on.
    Is there a fix/patch/workaround for this? I've combed the documentation and the site and can find nothing.
    We are using the product in an University environment and this can be particularly nasty in the labs.
    Thanks!

    iPlanet Messaging Server 5.2 HotFix 2.09
    We found a potential security risk.
    When a person loads Messenger Express through the web
    and closes their browser, another person can come in
    behind them and resume the previous persons session.
    This is accomplished by going through the browser
    history and accessing any of the links that point
    inside the mail client.Yep. that's true. And, it 's not possible to "fix" that. The reason it cannot be fixed, is that http is stateless. The server can't know when you simply close a browser, instead of you still being there.
    There is an idletimeout that defaults to 10 minutes.
    >
    When the browser closes, the session isnt killed. Its
    only killed/inaccessible if the user times out or
    clicks log-out. We've tested this on just about any
    browser we can get our hands on.Right. This is a basic limitation of the http protocol. It's not something we CAN fix.
    >
    Is there a fix/patch/workaround for this? I've combed
    the documentation and the site and can find nothing.
    We are using the product in an University environment
    and this can be particularly nasty in the labs.You will have to educate your users to log out. That's all I can suggest.
    >
    Thanks!
    ashley

Maybe you are looking for

  • 3rd party order processing GR movement type

    Hi In 3rd party order processing the goods are delivered to customer from vendor directly, but for billing purpose we do the GR at plant level(against purchase order)>invoice>Billing Physically stock is not delivered to the plant, so when we do the G

  • Spool Error: "Error in spool C call: Error from TemSe"

    Hi All, We are getting the above error in F110 transaction. Even though the line items are clearing. But, cheque numbers are not updating and spool also not creating. Please suggest me, what i have to do for this. Thanks in Advance, Krishna.

  • Defered COGS does not clear

    Hi Gurus, I am seeing sporadically DCOGS account does not clear causing balance in GL . I am looking to see problamatic transactions from GL. I have done sanity check from Cost Management with COGS Process , Revenue Recognition and Generate COGS Even

  • How to get costing BOM from R/3

    Hi friends, How to get costing BOM from r/3 with levels into bw.and the transaction in r/3 is ck13n

  • Why does watching movies using iTunes & Netflix judder on Apple TV?

    I have connected my Apple TV to my network both wireless & ethernet but still get the same issue.  The judder seems to happen more on sweeping camera shots.  It doesn't cause a movie to be unwatchable but it is off putting and am disgruntled when I h