Portal logoff vs. browser close

Hello,
I am facing an issue with the SAP MSS iViews (running on EP6.0 sp2 patch2).  If a manager with a large span of employees drills down into his org and picks an employee, the general info for that employee shows.  Then, if he logs off using the logoff link WITHOUT closing the browser and another manager logs in, this manager see the other manager's employee.  The second manager does not have the employee in his org span!!!  I have tried killing all the cookies that I can get my hands on:
old = new Date(0);
               cookiedomain = document.domain.substr(document.domain.indexOf(".")+1);
               SetCookie('MYSAPSSO2', null, old, '/', cookiedomain);
               SetCookie('JSESSIONID', null, old, '/', cookiedomain);
               SetCookie('urn:com.sap.pct.hcm.orgmanagement:CurrentObject', null, old, '/', cookiedomain);
               SetCookie('urn:com.sap.pct.hcm.orgmanagement:CurrentObject', null, old, '/');
None of this helps me any...
Thanks,
Mike

Hey Johnny,
Basically what I did was to set the cookie
urn:com.sap.pct.hcm.orgmanagement:CurrentObject = someTypeOfObjectId
to
urn:com.sap.pct.hcm.orgmanagement:CurrentObject = ""
This was done in the Header.jsp of the masthead iView in the Javascript that's called for the EP logoff - look for a Javascript logoff() function.  I just used one of the standard cookie Javascripts (Google) to set the cookie value to "" with path "/" and the current domain.
Okay, now that I've told you what I did... I'll also tell you that this is a very HACK solution and I don't recommend you do this.  Looking back, I think it better to implement Frank's solution.  Put Javascript in the logoff() function that closes the browser window when the logoff link is clicked.  This is much cleaner than what I did and this way you guarantee all session cookies are killed...
Let me know how things go,
Mike

Similar Messages

  • Portal logoff : Redirection or Close the Entire Window

    Hi Folks
    I need some clarity for the below scenario.
    I have two login pages as
                     1.Default Login page
                     2.Custom Login Page
    On clicking the LogOff  in my Custom Login Page,  it should take me back to my CUSTOM login page not to the Default.
    But the portal takes me back to Default Login Page.
    Can any one provide some pointers over this. where to do the modification inorder do proper redirection on logoff....
    Thanks
    Kumar
    Points will be awared for sure.

    Hi Eliel
    Dear Friend
    I totally agree wat u said , but i tried that option too, where i found RUNTIME ERROR happening....
    i hope you are talking abt this below function , am I rite ?
    //Get the external logoff URL
    private String getExternalLogOffUrl()
       return UMFactory.getProperties().get("ume.logoff.redirect.url");   
    // Here i tried this way  as you pointed...but it didnt work...
    return UMFactory.getProperties().get("www.google.com"); 
    MoreOver if you look into SAP Notes 696294, where they mention as similar to ur suggestion.
    From SAP Notes 696294:
    To enable this feature, set the following UME properties:
    ume.logoff.redirect.url=<url_users_are_redirected_to_after_logoff>
    ume.logoff.redirect.silent=[true|false]
    Set the second parameter to true if the URL is to be called silently in a hidden iFrame
    I tried this way too, but fail to succed.
    But My Friend , i found another work around where i am successful...
    In the HeaderiView.jsp , down below the logoff operation
    modify the Form as like below ,
    *<form name="logoffForm" style="display:none;position:absolute;top:-5000;left:-5000" action="http://www.google.com" method="POST">*
    *     <input type="hidden" name="logout_submit" value="true"></input>*
    *</form>*
    It worked for me ... Try it out....
    Post me your comments over this...
    Thanks
    Kumar T

  • Execution of WDExit() on portal logoff

    Hi folks,
    I have been trying to write some functionality on wdDoExit() of a view. The method - wdDoExit() is called when i close the browser.
    But, when i host this application on portal, this is not happening. I want wdDoExit() to be triggered on portal logoff or closing the browser window. Is there any way of achieving it??
    Any ideas or work around appreciated.

    HI Kunal,
    This is not possible. You can manage only the iview area where you dynpro application is hosted. apart from it. portal logoff and closing window where portal is running. those are completelly portal instants.
    And not recomonded that you change portal setting to execute your application code. as portal supports other applications too.
    A workaround is.
    we have done this for differnet purpose.
    when you create an iview in your portal for you dynpro application.
    1.on logoff of your portal.. pass a parameter to you application.
    2.specify that parameter in your default inbound plug of main screen.(i.e. the screen which executes first)
    3. and according to that parameter execute you wdexit of dynpro.

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

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

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

  • Error when redirecting the portal logoff page

    Hello,
    we have a problem in redirecting the portal logoff page.
    Our production system is a cluster environment -windows 2003.
    we have developed customizing page for portal logoff.
    when the cluster is in Node A the functionality of the logoff page is working fine and it is redirecting to the customized page.
    But when we shift it to Node B and logoff the portal it is not showing the customized page.
    We have referred the following note also:696294.
    We have added the portal logoff page is IIS services also.
    But when we shift the server from NodeA-NodeB the functionality of the redirecting is not happening and it gives a message
    you are not authorized.
    I appreciate any one response.
    Regards,
    Krishna.

    Hi sridhar,
    Thanks for your reply.
    What my error is "iam getting the logoff page redirected when the cluster resources are in Node1 but iam not getting the same logoff page when the cluster is nodeB"
    Ie we have developed a customising logoff page and set the page.When the services are in Node A the fucntionality is working fine.But when the resources move to NodeB iam not getting the customized logoff page".It says no authentication.
    Aprreciate your further help.
    Regards,

  • Portal Logoff and redirect to my own (created) logon page

    Hi experts,
    one Question about "Portal logoff and redirect to another URL", and I know there already are solutions how to fix that, but I was not successfull with my doings.
    I have a customized logon page. When I call "http://myportal:50000/irj/portal/anonymous", I can see my own logon page. That works fine.
    Now to my problem:
    1) I'm using SAP NetWeaver Portal v7.01 (VMWare) with Windows 7 (x64 Bit)
    2) In Config Tool "ume.logoff.redirect.silent" is setted at true and "ume.logoff.redirect.url" (both under "Global settings") at "http://myportal:50000/irj/portal/anonymous". Than WebAS has been restarted.
    3) In source code of the Portal page (Masthead), I could see that the setted values can be readed from config tool
    4) So far I could understand, when the parameters are setted and "silent" is true, than a new iframe will be created which is append to the document (JavaScript: logoffThirdParty())
    5) After this, the logoff form will submitted, that means xxxx.LogOutComponent is running. Think this components reads some hidden attributes as "logon_submit", and one of this should be the (new created) externalIFrame
    Instead of my anonymous page, I see the default SAP logon page. I don't have made any changes on com.sap.portal.navigation.masthead iView (should be the right name I think).
    Thanks for assitance and regards,
    Cengiz
    Edited by: Cengiz Türkoglu on Feb 5, 2010 8:39 PM
    Edited by: Cengiz Türkoglu on Feb 5, 2010 8:39 PM

    Try to set the value ume.logoff.redirect.silent to FALSE and then restart and test. In my situation it worked.
    Regards,
    A

  • Portal Logoff with firefox

    Dear friends,
        When I click on log off button in portal (with firefox browser), it does nothing. Does anyone know how to fix this issue? Log off does work fine with I.E. We are on EP6 SP13 Patch 2.
    Thanks and Regards,
      Mandar

    Hi Walser,
    Is this only for a particular application or to all ABAP applications?
    Please change the Supported User Agents property to (*,*,*) in the iview property and check if it can help.
    Regards,
    Harsha

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

  • 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

Maybe you are looking for

  • Different parts for the same ID

    Hi, TABLE1 contains informations about programs, these include: PROGRAM_ID (fk of program table), PART_NO, MEDIA_ID A program can be made of different parts (PART_NO i.e., part 1, 2, 3, 4, or 5). The media_id is the unique identifier or a VHS tape wh

  • 10.1.3.1 - Wrong syntax red flag does not appear for undefined variables

    I installed 10.1.3.1 and I noticed something strange. In 10.1.3.0 a very nice feature was the indication, with a red flag, of wrong instructions. Now, when a variable is not defined, the red flag doesn't appear and I see the error only at compile tim

  • Move-out possible even though the customer is still owing

    Hi Experts, Is there a way to control or block move-out if the business partner has open items on the contract account? Thank you in advance for your help. Mashudu

  • "Failed to convert to native blob" error

    Can someone else me?  Whenever I go into the slideshow module, I get the error "failed to convert to native blog"  Any suggestions?

  • PROTECT DOES NOT SHOW CONTACTS IN BACKED UP DATA; 8530

    Hello, when I attempted to restore my data from Blackberry Protect I do not see CONTACTS in the list of data that has been backed upand available to be restored. I checked the under OPTIONS in the app menu to verify that I had selected contacts and a