Session termination when close the browser

Hello
Is there any way I can close all sessions when user closes the browser by clicking the X button on the top right hand corner of the browser instead of logging out.
Please help as this is a serious security concern I am facing with my application.
Thanx..
Deepak

deepak_bran wrote:
Hello
Is there any way I can close all sessions when user closes the browser by clicking the X button on the top right hand corner of the browser instead of logging out.
You have to write code that captures the window closing event and send a request (ajax will do) to the server to fire off the session invalidation.
Google for "handle window closing in browsers". AFAIK, there is no standard event that works on FF, IE and Safari - so if cross browser compatibility is a requirement, you have problems. There are workarounds that googling will lead you to.
Another option - If possible use per browser cookies for your session - the session finishes when the browser is closed. Mind you, the session would still be alive on the server side and would get recycled only when the session inactive interval is exceeded.
cheers,
ram.

Similar Messages

  • Whenever i have a mozilla browser on and i try to open another mozilla window browser it work pull up a new window. When close the browser that was on, it will still show up on Task Manager. Whats going on with this?

    Whenever i have a mozilla browser on and i try to open another mozilla window browser it work pull up a new window. When close the browser that was on, it will still show up on Task Manager. Whats going on with this?

    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How the system automatically kills the process when I close the browser?

    Hi everybody,
    I have the following problem: I run a report on the web browser. Suppose the user want to detail on one of the characteristics of report. If this takes long time (there are many records in report) and the user closes the web browser, the SAP system still run the proccess (in SM50 I see the dialog process still working, althrough the user closes the browser). This didn't happen in Excel, means, if the user press the 'Cancel' button when he/she tried to detail on one characteristic, the corresponding process is killed too (I see in SM50 how the corresponding dialog process is removed).
    How can I solve this ? Any idea about this?
    Thanks in advance.
    Florina

    Florina,
    there is a timeout set for the web session and the session would get automatically terminated after some time ..
    Some options are :
    1. Use Stateless Templates
    2. There is a Web Template setting called "Automatic Session Management" which uses a page wrapper cookie and kills the session when the person navigates from the page.. - <b>have changed it from previous answer after seeing Anil's post - apologies</b>
    3. If you are using EP  , you could implement DSM Terminator for the same.
    All the above( except 3) will not be suitable for stateful templates , if you want export to excel capability , or printing capability or the capability to save the pages as HTML for local use , you have to use stateful templates.
    First you would have to decide whether to use statefull or stateless templates and then depending on the choice made , go for any of the above. In case non of them work out for you , there is another option , but that would include a lot of javascript and using some command line parameters , update this post and I can tel you about the other if required..
    Hope it helps..
    Arun
    Assign points if useful
    Message was edited by: Arun Varadarajan

  • When I have the downloads window open and I close the browser window, how can I get the browser to open the homepage the next time I start it while the download window is still open?

    When I have the downloads window open and I close the browser window, the next time I reopen the browser while the downloads are still going, it returns me to the last page I was on. All previous versions of Firefox would return me to my homepage which I would prefer. Please let me know if this is possible.

    When you re-open Firefox and choose Restore Session, by default it picks up your most-recently-open window, and the other windows should then show up in Recently Closed Windows.
    The Firefox add-on Session Manager lets you manage how many closed windows and closed tabs are saved, in case it's not enough.

  • How can I get my desktop page to open when I close the browser and then re open it?

    when I click the red x to close the browser, when I come back to open the browser later, the last page I was viewing. last session opens, even all other tabs behind it, instead of my google page (my home page)? can this be fixed) I know I can just click the google word in the search bar, but should not have to do this!

    {
    "application": {
    "name": "Firefox",
    "version": "32.0.3",
    "userAgent": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0",
    "supportURL": "https://support.mozilla.org/1/firefox/32.0.3/WINNT/en-US/"
    "crashes": {
    "submitted": [],
    "pending": 9
    "modifiedPreferences": {
    "browser.cache.disk.capacity": 358400,
    "browser.cache.disk.smart_size.first_run": false,
    "browser.cache.frecency_experiment": 3,
    "browser.places.smartBookmarksVersion": 7,
    "browser.sessionstore.upgradeBackup.latestBuildID": "20140923175406",
    "browser.startup.homepage_override.mstone": "32.0.3",
    "browser.startup.homepage_override.buildID": "20140923175406",
    "dom.mozApps.used": true,
    "extensions.lastAppVersion": "32.0.3",
    "gfx.direct3d.last_used_feature_level_idx": 0,
    "network.cookie.prefsMigrated": true,
    "places.history.expiration.transient_current_max_pages": 104858,
    "places.database.lastMaintenance": 1413230897,
    "plugin.disable_full_page_plugin_for_types": "application/pdf",
    "privacy.sanitize.migrateFx3Prefs": true,
    "storage.vacuum.last.places.sqlite": 1413230897,
    "storage.vacuum.last.index": 0
    "graphics": {
    "numTotalWindows": 1,
    "numAcceleratedWindows": 1,
    "windowLayerManagerType": "Direct3D 10",
    "windowLayerManagerRemote": false,
    "adapterDescription": "AMD Radeon HD 7670M",
    "adapterVendorID": "0x1002",
    "adapterDeviceID": "0x6840",
    "adapterRAM": "1024",
    "adapterDrivers": "aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64",
    "driverVersion": "13.151.0.0",
    "driverDate": "8-19-2013",
    "adapterDescription2": "",
    "adapterVendorID2": "",
    "adapterDeviceID2": "",
    "adapterRAM2": "",
    "adapterDrivers2": "",
    "driverVersion2": "",
    "driverDate2": "",
    "isGPU2Active": false,
    "direct2DEnabled": true,
    "directWriteEnabled": true,
    "directWriteVersion": "6.3.9600.17111",
    "webglRenderer": "Google Inc. -- ANGLE (AMD Radeon HD 7670M Direct3D9Ex vs_3_0 ps_3_0)",
    "info": {
    "AzureCanvasBackend": "direct2d",
    "AzureSkiaAccelerated": 0,
    "AzureFallbackCanvasBackend": "cairo",
    "AzureContentBackend": "direct2d"
    "javaScript": {
    "incrementalGCEnabled": true
    "accessibility": {
    "isActive": true,
    "forceDisabled": 0
    "libraryVersions": {
    "NSPR": {
    "minVersion": "4.10.6",
    "version": "4.10.6"
    "NSS": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "NSSUTIL": {
    "minVersion": "3.16.5",
    "version": "3.16.5"
    "NSSSSL": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "NSSSMIME": {
    "minVersion": "3.16.5 Basic ECC",
    "version": "3.16.5 Basic ECC"
    "userJS": {
    "exists": false
    "extensions": [
    "name": "Logitech SetPoint",
    "version": "6.5",
    "isActive": false,
    "id": "{F003DA68-8256-4b37-A6C4-350FA04494DF}"
    "name": "Norton Toolbar",
    "version": "2014.7.8.23",
    "isActive": false,
    "id": "{2D3F3651-74B9-4795-BDEC-6DA2F431CB62}"
    "name": "Skype Click to Call",
    "version": "7.3.16540.9015",
    "isActive": false,
    "id": "{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}"
    "experiments": []
    }

  • The App tabs that I set get erased when I close the browser. How do I get them to stay?

    I have set app tabs during a browsing session. The tabs stay in place as I go from site to site. When I close the browser and then re-open it the app tabs are erased and I have to start over again. I have been working around the problem by bookmarking the sites I use often, but that is an inconvenience. Would appreciate any suggestions.

    App tabs and Tab Groups (Panorama) are stored as part of the session data in the file sessionstore.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]
    * http://kb.mozillazine.org/Session_Restore
    Make sure that you do not use [[Clear Recent History]] to clear the "Browsing History" if Firefox is closed.

  • When I log out of my bank account, it says to close the browser. Does that mean I need to close every tab that is open? Thanks!

    When using Firefox on my desktop computer, I usually have 3-4 tabs open. Whenever I log out of my banking website, it reminds me to close my browser for security reasons. Does this mean I need to close every tab when I log out of a secure site? Thanks. I'm using Windows 7 and the latest version of Firefox.

    It depends on how paranoid you are.
    There is a theoretical risk that a site in another tab or window could read through the history of your banking session and extract information, but that probably is very rare.
    You definitely want to close the browser before leaving the PC available to another person.

  • When i make changers to my firefox settings and i close the browser, the changes are not saved, why?

    when i make changes in the options menu like - allow pop ups or never remember history, it works great but when i close the browser, the changes i made are not saved, this never happened on the previous version
    i have unistalled firefox4 and reinstalled it but this dows not help

    See:
    * http://kb.mozillazine.org/Preferences_not_saved

  • The new version of firefox does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    Firefox automatically loaded a new version recently. The new version does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • When I switch between networks firefox is not working. I will have to close the browser and open it again!?

    Hi,
    I love firefox!!! I wanted it to be perfect all the time, one issue I come across with it recently is: When I switch between networks (say connecting to myoffice network through VPN when firefox is already open) firefox is not working. I will have to close the browser and open it again to make it work! could you please fix this.
    Thanks.
    Raja Pattamsetty

    If an option or preference settings not being saved after you restart firefox see:
    [http://kb.mozillazine.org/Preferences_not_saved Preferences not saved]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • When I copy something in Mozilla Browser, if I close the browser, I cannot paste it in another place (the browser forget if it is closed). This is not heppening in Internet Explorer.

    ''I have an example, to be clear enough:
    I open Mozilla, I enter www.imdb.com, I look for a movie.
    I find a page that I want to send to a friend of mine.
    I select from browser bookmark the address, right click on it and select copy.
    '''I CLOSE THE BROWSER.'''
    When I want to paste that information on any other place (in a document, in chat, in messenger etc.) there is nothing to paste.
    The browser forgets the information copied if it is closed. If it's not closed, he doesn't forget.
    This is happening on any PC, desktop, laptop and it doesn't matter if it is on vista, windows xp etc.
    This problem doesn't exist on Internet Explorer.
    Can you tell me if I have a way to change this problem ? To choose whether i want to be that way or not.
    Tnank you !''

    I know this, but i was wondering if there is a way, a setting which will make Mozilla to not forget the inofromation copied after it is closed.
    Internet Explorer doesn't clear the information copied on clipboard after it is closed. And you don't have to make a setting for this. He just remember it.
    Thank you !

  • When I sign out of my bank account, Firefox says its blocked and I have to close the browser, why?

    I clicked sign out from my bank account, and a message came up that my account has been blocked, and I am requested to close my browser. Once I received an error message.
    ID Code:c967ecee-285b-4a1c-85fe-3f5cfdaaafdd
    This has happened several time now!
    Can you help me solve this problem?

    It depends on how paranoid you are.
    There is a theoretical risk that a site in another tab or window could read through the history of your banking session and extract information, but that probably is very rare.
    You definitely want to close the browser before leaving the PC available to another person.

  • Cookies are not being cleared when I close the browser although the option is set. Any suggestions?

    Under Options; Privacy I have Clear history when Firefox closes ticked and within the Settings for Clearing History I have Cookies ticked. Cookies are not being cleared when I close the browser. Windows 7, SP1 x64

    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case the file cookies.sqlite got corrupted.
    * http://kb.mozillazine.org/Cookies#Removing_cookies

  • When I customize things like homepage, privacy, history they all change back to Firefox default when I close the browser

    Firefox will not remember my customized options. I set my homepage and privacy options and when I close the browser and reopen, it will be back to Firefox default homepage.

    Sounds like you could have a locked or corrupt preferences file. Try this article for steps to fix that - [[Preferences are not saved]].

  • When I click on a link, tabs open continuously and rapidly until I close the browser. How do I stop it?

    Every time I click on a link, multiple tabs open rapidly, one after another, until I close the browser. This does not happen when I use Internet Explorer.
    == This happened ==
    Every time Firefox opened

    Firefox includes options of how to handle different content types, in your case the mailto links are probably set to "Use Firefox". For details of how to fix this see [[Firefox keeps opening many tabs or windows]], in particular the section "Change the action for a content type".

Maybe you are looking for

  • Installed BT NetProtect Plus on a PC Being Upgrade...

    I have a PC running one of my BT NetProtect Plus licences.  The PC is currently running Windows XP Pro SP3, but in the near future it's going to get wiped and replaced with Windows 7 Ultimate.  The hardware is all staying the same just the Windows ve

  • What function is used to read Angular Position form a Task?

    I have created a DAQmx task in MAX. This task configures a counter on a PCI-6259 to take the A and B counts from an encoder and give the Angular Position. What function do I use to read the value since I am no longer reading counts I am reading the p

  • Using AP Express for Printing ONLY

    Hey Discussions, I want to purchase an Airport Express for the sole purpose (right now) of printing. Is it possible to use the Express without an Internet connection? Thanks, Mateo

  • Where is the best place to put custom functions?

    Hi, I have a composition which has a number of symbols. I have to call some custom methods externally and was wondering where is the best place to put the custom methods? I have seen posts that I should put the code in the CompositionReady event of t

  • F4 HELP IN OUTPUT LIST

    i m geting report list in output. i want to f4 help in list its possible der frnds