ending a session in servlet

Discussion in 'Java' started by sarav, Mar 19, 2006.

  1. sarav

    sarav Guest

    hi folks,
    i need to know one simple answer but its not workin for me.
    i have a problem with my servlet.i had bound an rmi object with a
    servlet page.The thing i need is i have to invoke the call to an method
    of rmi class when the IE running servlet page is closed.i tried with
    destroy() method of servlet but it is invoked only when the server is
    stopped.
    wht can i do now?
     
    sarav, Mar 19, 2006
    #1
    1. Advertising

  2. sarav wrote:
    > hi folks,
    > i need to know one simple answer but its not workin for me.
    > i have a problem with my servlet.i had bound an rmi object with a
    > servlet page.The thing i need is i have to invoke the call to an method
    > of rmi class when the IE running servlet page is closed.i tried with
    > destroy() method of servlet but it is invoked only when the server is
    > stopped.
    > wht can i do now?
    >


    There is no way to surely know when someone closes the browser. The best
    thing you can do is to know when the session is destroyed. You can use a
    session listener for that
    And be careful when using members in a servlet, there can be threading
    issues.
     
    Andrea Desole, Mar 20, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Thomas Bindzau

    Re: ASPNET Session ending before time

    Thomas Bindzau, Jun 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,397
    Thomas Bindzau
    Jun 24, 2003
  2. =?Utf-8?B?RG9uYWxkIFNjb3R0?=

    Session ending prematurely - Forms Authentication

    =?Utf-8?B?RG9uYWxkIFNjb3R0?=, Jul 15, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    545
    =?Utf-8?B?RG9uYWxkIFNjb3R0?=
    Jul 20, 2005
  3. Fabio Cavassini

    Session not ending?

    Fabio Cavassini, Jan 18, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    434
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
    Jan 18, 2006
  4. circuit_breaker
    Replies:
    2
    Views:
    2,052
    Jack Jia
    Apr 4, 2004
  5. DiscoStu
    Replies:
    0
    Views:
    515
    DiscoStu
    Jul 8, 2004
Loading...

Share This Page