Results 1 to 4 of 4

Thread: on closing he browser

  1. #1

    Thread Starter
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    on closing he browser

    i use the Global.asax in my asp.net application
    void Session_Start(object sender, EventArgs e)
    {
    // Code that runs when a new session is started
    Session.Abandon();
    }


    i need this
    when the user close the browser or the browser shutdown for any reason
    i need to delete his id from my database

    i try to use the
    void Application_End(object sender, EventArgs e)
    or
    void Session_End(object sender, EventArgs e)

    but when the browser is closed these methods are not active

    is there is a way
    thx alot
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: on closing he browser

    there is one unreliable way but the fact that you need to is almost always a sign of poor design.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: on closing he browser

    Not good. I know how to do it with javascript but I don't know if your browser can support that. You keep mentioning all these limitations.

  4. #4

    Thread Starter
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: on closing he browser

    ya mendhak
    i will do it and when i finsih i will post the answer
    thx alot
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width