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. Executing a code when session ends

Executing a code when session ends

Scheduled Pinned Locked Moved ASP.NET
question
3 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.
  • M Offline
    M Offline
    meetbinu2003
    wrote on last edited by
    #1

    dear All, I have a webapplication, I wants to execute a bit of code(simply save logout time) when the session ends. Some times the user closes the browser with out pressing logout button, In such casess how i can execute session end event?. Urgent Pls Reply.. Binu

    D 1 Reply Last reply
    0
    • M meetbinu2003

      dear All, I have a webapplication, I wants to execute a bit of code(simply save logout time) when the session ends. Some times the user closes the browser with out pressing logout button, In such casess how i can execute session end event?. Urgent Pls Reply.. Binu

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

      In the global.asax file (if you don't have it, you can add it to your project), there is a Session_end event ;). daniero

      M 1 Reply Last reply
      0
      • D Daniel Santillanes

        In the global.asax file (if you don't have it, you can add it to your project), there is a Session_end event ;). daniero

        M Offline
        M Offline
        meetbinu2003
        wrote on last edited by
        #3

        I added code in Session end in global.asax file. But the user simply closess the browser then that code will not work.... please note it and reply me a suggection

        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