BSP session not dying when browser window closes

Hi,
I am having a small problem with the bsp session. I shall explain the prb with an example.
Lets say i have a bsp application BSP1. I open the application from the Favorites tab in the SAPGUi.
Initially, i have another browser window open containing google.com(this is imp that i have another browser open all the time containing anything). I now start BSP1, then i close the window by hitting the close button of the browser, as a result the controller sends a exit view back to the frontend which never gets displayed. now i start BSP1 again from SAPGUi, and the browser instead of showing me the logon screen and the start page goes to the exit page of the application. In other words to the last URL that i visited last time in the application. Somehow when the window is closed, the session on the applicaiton server is not dying. This only happens if i have any other browser open all the time containing any thing.
If i do not have any other browser open, and then i follow the above sequence of events,everything runs smoothly. Also, in the previous case, if i close the google window also and start the application again, everything runs smoothly. In IE settings , in Advanced tab there is a setting for REUSE EXISTING WINDOWS FOR LAUNCHING SHORTCUTS. If i set this option, everything runs smoothly, even if i have a Google(whatever) window open all the time. If i do not set this option, i run into the problem as in the first case. Also, if instead of opening the application through the SAPGui i open another browser from the taskbar and type in the URL , everything runs smoothly inspite of another google window being opened all the time.
Also this problem is evident in systems with BASIS 640/level 10 and BASIS 620/level 19. It might be present in other versions also but i am working on these two systems with these versions. This problem does not pop up on BASIS 700.
If on exit, within the controller, i reset the keep_context attribute of RUNTIME  object, everything runs smoothly.
could you please guide me as to what can be the problem here and how it can be solved. It is important. Any kind of help and guidance would be highly appreciated.
Looking forward to your response,
Thanks and best regards,
Ghufran

The very first important aspect to understand is that CANCEL kills the session long before the request reaches the ABAP stack. So what ever you want to do, this is not the way to go.
From reading your first post in this thread through, I have the impression that you might have some confusion between stateful versus authentication. No, I it is not the problem/solution, but just that your very long descriptions without using consistant terminology makes it difficult to understand where we are going.
Thus, I would recommending read this article for background information:<a href="/people/mark.finnern/blog/2003/09/24/bsp-in-depth-confusion-between-stateless-stateful-and-authentication">BSP In-Depth: Confusion between Stateless, Stateful and Authentication</a>.
Next, you CAN NOT "redirect it to the browser on the onbeforeunload() event". Well, at least I never have never succeeded.
Once the closed button is hit, you have not many options. One idea is a window.open, see system application for examples. The other is the image loading trick that Thomas describes in his weblog. Both ideas will actually solve your problems (once you really understand what is happening). This is unfortunately not always perfectly easy.
brian

Similar Messages

  • If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    If I have multiple browser windows open (not tabs, windows) and I close 1 of them, why do ALL browser windows close?

    How are you closing the window?
    Are you using the File menu or the close X on the title bar?
    Use Alt + F to open the File menu with the Close Tab entry visible (doesn't work with the mouse).

  • Safari 5.1 -- 'Open at Login' not opening a browser window?

    I have Safari set to open at login (right-click Safari in the Dock > Options > Open at Login). When I reach my desktop, the Safari icon in the Dock bounces and the spotlight lights up as expected, but Safari does not open a browser window -- I have to click the Safari icon or click File > New Window to see a window.
    I've used Open at Login with Firefox and Mail and have never experienced this issue; the application window always opens. I've also tried disabling Safari's extensions and resetting Safari's settings (Safari > Reset Safari) with no luck.
    I know I can probably trick Safari by adding a shortcut to my homepage to the Dock and have that open at login, but I would like to resolve this if I can. Any ideas?

    I found this discussion about three or four months ago. I was having the same problem with Safari not opening, along with my other login items.
    The tip posted by Linc on Oct 3, 2011 9:22 AM, resolved the issue.
    Thanks Linc!
    HOWEVER... Today, all of the sudden... Out of out of the blue... I have the same problem, again!?
    I tried removing, then re-adding, the URL file from the log in items, automatic open list.
    It did not work?
    Does anybody have any ideas/solutions regarding this issue? This is becoming VERY aggravating!

  • New Galaxy 5s.  Trying to connect to a guest wireless that routes browser to a login screen.  The wireless will not connect (gives authentication error), so will not pull up browser window.  My previous Android did not have this problem (it would connect

    New Galaxy 5s.  Trying to connect to a guest wireless that routes browser to a login screen.  The wireless will not connect (gives authentication error), so will not pull up browser window.  My previous Android did not have this problem (it would connect and immediately reroute to the login screeen).

    Would you please try manually set the DNS address on client NIC to the IP of your server, then try run the connector again?

  • My Elements 9 is not responding when started Windows

    My Elements 9 is not responding when started Windows.

    Without proper system information and otehr details such as the crash log from the Event Viewer nobody can say much.
    Mylenium

  • HP Deskjet Ink Advantage K209a Driver not found when installing windows 8

    MY  PRINTER " HP Deskjet Ink Advantage K209a"  OPERATING SYSTEM  Windows 8 32 bit
    Driver not found when installing windows 8 .So,please give me a suggestion & give me new driver for win 8.
    [Personal Information Removed]
    Please give me a suggestion

    Hey 101214,
    I see you have a Windows 8 PC and a Deskjet Ink Advantage All-in-One printer (K209a).  I also see that you need a driver link for this OS and Printer.  Please follow the link below to download the driver for this printer/OS combo.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=al-109242-1&cc=us&dlc=en&lc=en...
    If you need information on how to perform the USB installation on your Windows 8 PC please click here.
    I wish you the best!
    Jason
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • Whenever I open new tabs Firefox crashes and the browser window closes automatically.what will I do?

    I am facing this problem since a month.I never faced this problem before.I always feel good to use Mozilla Firefox as my browser.I used to open multiple tabs in a same browser window.For example- in a tab I logged in to Facebook,at same time I might be downloading songs or something else or open another site in the other tab.It might be 2 or 3 tabs sometimes.But now a days,I am facing the problem whenever I open multiple tabs.Its unusual and so much annoying.The Firefox crashes and the browser window closes showing a messege to send an error report.Please Help me.
    N.B. - I am using the Windows service pack 2.
    RAM - 2 GB
    Hard disk MEmory - 250 GB.

    I had this same problem. Seems to be caused by the web developer tool bar FF extension (this started happening after a recent update to that extension). After disabling it, my FF is back to normal :)

  • Cs12 trial not responding when installed, windows 7 64bit...how to fix??

    cs12 trial not responding when installed, windows 7 64bit...how to fix??
    Not a very good recommendation for buying the app!!!!
    Does anyone at Adobe follow these questions???  If so please respond (your app will not!!)

    Hi wcarlstrom,
    Adobe CS12 is unheard of. Adobe Creative Suite's latest version is CS6.
    Please be specific as to what software you are trying to install, OS version etc so that I may be able to help you.

  • Browser window close

    If a form is running through a browser, how can the developer ensure that whan a user closes the browser, and so bypasses an application shutdown button, all correct application close functionality is handled.

    Facing this exact issue ..
    Here are the other things that I tried.
    Can someone please help ?
    PS2-Calling an ActionListener on browser window close using JS eventQueuing

  • Multitouch on track pad not working when running Windows 8 in boot camp

    Does anyone know a work around on how to resolve the issue of more than one fingers on the trackpad? For example, I use one finger to click a window then another finger to slide/move the window to a different location on the screen. This does not work when running Windows 8 in Boot Camp latest version. Any suggestion is much appreciated.

    very very few gestures are supported in windows
    https://discussions.apple.com/message/24548533#24548533
    if it's a limitation from ms you need to contact them
    if it's a limitation from apples drivers you can use feedback channel
    http://www.apple.com/feedback/

  • Backend BSP session not closing on server after closing the window

    Hi All,
    We have SAP EP (7.0 SP21) and there is a BSP transaction ivew (Interaction Center ) intergrated in the portal. The issue is when the user performs any transactions inside the BSP and then closes the browser, session remains on the server till the timeout. Is there a way to end those sessions on server after closing the browser immediately?
    Portal domain : xx.mycomp.com
    ABAP system domain :mycom.com
    Should the domains be same for the DSM of Portal to work or is there any solution that can be considered.
    regards
    Uday

    Hi Uday,
    These are the main issues that can cause issues with DSM:
    JavaScript Origin Policy:
    Scripting
    between different domains is not allowed because of “JavaScript origin policy”.
    Also
    communication between mixed protocols (http\https) is forbidden.
    Therefore
    the portal server and the content server must be on the same domain and must
    use the same protocol.
    For
    detailed explanation see:
    http://mozilla.org/projects/security/components/same-origin.html
    Popup Blocker:
    •Popup blockers may cause troubles
    in relation with SRA feature.
    •Terminator handles notifications in
    new window when current window is being destroyed (logoff, closing browser
    window) – popup blocker prevents the opening of new window, hence no session
    handling performed.
    please also check SAP Note #596698 for more information typical problems and troubleshooting.
    In general, the 2 domains should be the same.
    xxx.mycomp.com, meaning that first part of the url can change but what comes after should be the same domain.
    Best regards,
    Etay

  • Disallow browser window close x button when using separateFrame=false

    Hi!
    For problems with mutlicore processors and seperateFrame=true we have to workaround this with change to seperateFrame=false.
    The biggest problem is actual the behaviour when using the close button (x).
    With seperateFrame=true this closed every single form of the call stack, asks you to commit or discard your changes for every single form.
    With seperateFrame=false this closed the whole application without asking, changes are rolled back.
    Are there any possibility to disable the x button or catch the close command from browser to the forms session?
    kind regards
    Torsten

    Hello,
    one more question.
    Is it possible to change the method. so that the fpm opens within the same browser window instead of a new one?
    Maybe is there a solution with the portal?
    This is the Method to create a new Shopping cart. This opens a new browser window.
    method /SAPSRM/IF_CLL_DOM_SCW_FIN~CREATE_NEW_SHOPPING_CART.
    data:
           LV_TASKCONTAINER      TYPE REF TO /sapsrm/if_cll_task_container,
           ls_obn_components     type /sapsrm/s_wd_ui_obn,
           lo_navigation_service TYPE REF TO /SAPSRM/IF_CH_WD_NAVI_SERV.
    try.
      LV_TASKCONTAINER = mo_parent_bo_mapper->get_task_container( ).
      CALL METHOD lv_taskcontainer->GET_NAVIGATION_SERVICE
        RECEIVING
          RO_NAVIGATION_SERVICE = lo_navigation_service.
      ls_obn_components-obn_system = 'SAP_SRM'.
      ls_obn_components-object_type = 'sc'.
      ls_obn_components-operation = 'shop'.
      CALL METHOD LO_NAVIGATION_SERVICE->LAUNCH_TARGET
        EXPORTING
          IV_TARGET_TYPE          = /sapsrm/if_ch_wd_navi_serv_c=>gc_target_type-obn
          IS_OBN_COMPONENTS       = ls_obn_components
          IV_OBN_PARAM_CLASS      = /sapsrm/if_ch_wd_navi_serv_c=>gc_param_class-taskcontainer
          IV_OBN_PARAM_METHOD     = 'GET_OBN_PARAMETERS_RM'
      catch /SAPSRM/CX_PDO_ERROR_GEN.
    endtry.
    endmethod.

  • Force a window browser window close when open docs FROM THE KD

    We have an issue when opening documents from the kd a browser window opens, then the office doc opens. But it leaves the blank browser window there open. I have looked into it, and it appears the ptcommonOpener may be able to be modified with a piece of javascript "currentWin.close" in the href that gets built with the link.
    Does anyone have any experience with this or another way to do it.
    Thanks

    the problem has been solved for me following the process :
    1 -close entourage
    2 - start and follow the complete reconstruction of the entourage database ;
    3 - in the "entourage" menu, disable "office reminds" or "office recall" (i don't know the exact name because my entourage is in french)
    For me it has worked. when i click on the dock entourage shortcut it opens without showing the new message windows at start.

  • Safari 3.0.4 on OS 10.5.1 not crashing but browser windows DISAPPEAR! Help!

    I know there is a thread in the beta forum with a generic title "Safari acting strange" but I figured a more specific thread title might get more attention from those experiencing the same anomalies.
    Here is my problem:
    I'm using Safari 3.0.4 that came with the Leopard 10.5 disk I installed on my laptop. Safari was working fine for a good couple weeks and then suddenly it began acting strange indeed.
    Now after an undetermined amount of time when I have a Safari browser window(s)/tab(s) open it will suddenly disappear off my screen without provocation (meaning I don't have to perform any action to do this. I can be sitting there not touching the laptop or typing anything; it will just disappear as if some unseen person with a remote control hits the Let's-mess-with-this-guy's-computer button). At first glance it seems that Safari has crashed.
    However when I look to see what happened or perhaps relaunch I see that Safari is still up and running. The menu bars all work. It seems to be in perfect working order. Only problem is the browser windows have disappeared and nothing I do will bring them back. I can try to create new browser windows and Safar thinks it is creating them because I can check in Windows menu and see the fruits of my efforts stacking up more and more as I add new windows and tabs in an attempt to get the browser windows back. However where these windows live is a mystery to me. When I try to quit Safari I get an Alert message asking me if I really want to close the windows with the multiple tabs in them (further supporting the theory that Safari still thinks windows are open and seeable by me)
    When I DO quit Safari and relaunch it, it remains in the same state. No browser window is seen yet looking in the Windows menu I can see that a new browser window is present. The only way to use my Safari again is to reboot my computer. Of course this fixes the problem for maybe 5 minutes until the browser windows disappear again. And that's when I switch to Firefox.
    I've repaired permissions. I've checked for any Input Managers folder for culprits but seeing as this is a fairly new laptop and that I just did an Archive and Install of Leopard with a fresh Safari in toe I have not installed any 3rd party applications so no Input Managers folder exists anywhere on my laptop.
    I have the standard Safari Plug-Ins that come with Quicktime.
    I have Spaces turned off. I am not using dual monitors so the browser windows are not being shot off to a second screen somewhere.
    I see nothing in the crashlog because I actually don't think Safari is treating this behavior as a crash. It's not quitting unexpectedly or anything.
    So I am at a total loss. Any ideas?

    I had this problem as well.
    First: In Safari go into preferences and select the "security" tab. Uncheck "Enable Plug-ins"
    This fixed a lot of bugs for me !
    Second: If that worked than you just need to go to Hard Drive/Library/Internet Plug-Ins
    There should be a folder there that is called "Disabled Plug-Ins" I just put all of the plug-ins in that folder, went back and rechecked " Enable Plug-Ins" in Safari preferences, and then one by one added plug-ins back out of the disabled folder while reloading a web page that caused problems before. After some trial & error I think I have a setup that works for now. Hope this helps!! Also as of now I have installed all software updates. My mac has been doing this for a while. Logging out & back in reset safari back to where it was useable.
    I have not had problems with any other programs.

  • Safari will not open a browsing window

    I have a G4 tower running 10.3 and Safari 1.3.2
    Each time I open Safari, it loads fine, but I get no browsing window. The menus work, I can quit, organize bookmarks and so on. But, I cannot get a window, File > New window, or Apple N, neither will give me a browser window. So, it is completely useless.
    - I have done a clean archive and install of the 10.3 OS
    - I have made a new user, same problem
    - I have installed a few newer versions of Safari, these will not launch, they bounce in the dock, but do not open
    - I have installed Firefox, and it works fine
    So, this problem is worked around, but not solved.
    I am a little confused, a clean install of the OS should give me a new copy of Safari, as well as all the support networking files. A new user, should eliminate all the preferences issues.
    So, what other troubleshooting can I do to solve this?
    TIA
    mark

    I ASSUME that when I do an Archive and Install, I automatically get fresh copies of the various basic Apple programs like Mail and Safari?
    You do, but unless you use Software Update after that to bring your system current, you won't have Safari 1.3.2.
    Perhaps you should try this:
    1. Quit Safari if it's running.
    2. Go to Home/Library/Caches/Safari and delete all the sub-folders within that one.
    3. Go to Home/Library/Safari and:
    *Delete any of these files you have there:*
    • Downloads.plist
    • History.plist
    • LastSession.plist
    *Remove this file:*
    • Bookmarks.plist
    4. Restart Safari and see if the problem is fixed.
    Mulder

Maybe you are looking for

  • Applicatio​n developer issues in 8.2

    I developed a Vi in 8.01 and was able to depoly it succesfully. After I upgraded to 8.2 the first time I depolyed it everything was good but then I made changes to the build specs and tried to deploy it agin and started gettting errors "LabVIEW load

  • Major bugs in tools for CC 2014

    I'm having bugs using Illustrator CC 2014. Using the hand tool anywhere on artboard resets the screen to far right off the artboard and I have to find the artboard all over again. So it doesn't work. Resizing is choppy. It goes from sizing down norma

  • Handling Charges for billing withing 72 hrs.

    We have to apply handling charges at item level whereby all items that are delivered within 72 hrs of booking order got to be penalised with 5% handling charges as items are sent through air. We had added condition type JHAC. We need to automate it a

  • Help with folder view

    Hi, not sure how to describe this but when i open certain folder, the Name/Date Modified/Size/Kind on the folder view could not be adjust - meaning I could not pull the top tab to view the whole filenames. The same happen when I want to attached a fi

  • PSE9 - organizer -  move folders

    Hi, I have a problem with moving folders to another in Organizer. After the move, the content of moved folder has random pictures in it! What's wrong? Thanks for a solution