Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Session Management

Session Management

Scheduled Pinned Locked Moved ASP.NET
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ankushmn
    wrote on last edited by
    #1

    I am using StateServer Session but I want to write a code on Session_End and as Session_End event is not fired for StateServer I am stuck with some problem. My problem is if user close the browser without logout then I want to make some operations and Session_End was one option but as I am using StateServer that option is of no use. Is there any other option ? Please help me out. Waiting for reply. :-( Ankush... :-)

    D 1 Reply Last reply
    0
    • A ankushmn

      I am using StateServer Session but I want to write a code on Session_End and as Session_End event is not fired for StateServer I am stuck with some problem. My problem is if user close the browser without logout then I want to make some operations and Session_End was one option but as I am using StateServer that option is of no use. Is there any other option ? Please help me out. Waiting for reply. :-( Ankush... :-)

      D Offline
      D Offline
      Daniel Santillanes
      wrote on last edited by
      #2

      I haven't really tried it, but something I would try if I were in your situation is call an Ajax function on the onunload event of the body. I'm not sure but may be this event is fired when the window is closed. You'd need to make some tests. daniero

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups