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. Where to write session abandon?

Where to write session abandon?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
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.
  • R Offline
    R Offline
    RanaDear
    wrote on last edited by
    #1

    I got a problem with ending session abruptly. where to write session abandon? i will explain my problem with an example: let us suppose a yahoo user successfully logged in and transformed to next page ,here if he types some other url at address bar(without signing out), he is tranformed to other web page but his session is still active(as per my application) how to detect that a user is out of our application and where to write session abandon( which event?).how should i proceed further? {note:i tried write at application _begin request but it trows an error saying session cannot used at application level and reducing session time from default time might not solve my problem} Warm regards Rana

    C 1 Reply Last reply
    0
    • R RanaDear

      I got a problem with ending session abruptly. where to write session abandon? i will explain my problem with an example: let us suppose a yahoo user successfully logged in and transformed to next page ,here if he types some other url at address bar(without signing out), he is tranformed to other web page but his session is still active(as per my application) how to detect that a user is out of our application and where to write session abandon( which event?).how should i proceed further? {note:i tried write at application _begin request but it trows an error saying session cannot used at application level and reducing session time from default time might not solve my problem} Warm regards Rana

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      In the context of ASP.NET, the application is when the web server starts. Actually, it is when the first request to your website arrives. All sessions are running in the same application until the website is taken off line (IIS is stopped for example) What you probably need to look for is the Session start and end events in the global.asax.cs file. However, they won't fire immediately when the user navigates away from your page - there will be a session timeout and the session won't end until it times out.


      Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

      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