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 active and close the browser without login off...

session active and close the browser without login off...

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
3 Posts 3 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.
  • S Offline
    S Offline
    Sasmi_Office
    wrote on last edited by
    #1

    hi Friend's Suppose i have one application which having session time out set as 45 min, now the scenario is suppose one user login and activate that session and close the browser without login off. what happen to that session? Is that session automatically terminate by garbage collection? Or still remain active and if so then how to handle this session? Thank's and regard's

    Sasmi

    P A 2 Replies Last reply
    0
    • S Sasmi_Office

      hi Friend's Suppose i have one application which having session time out set as 45 min, now the scenario is suppose one user login and activate that session and close the browser without login off. what happen to that session? Is that session automatically terminate by garbage collection? Or still remain active and if so then how to handle this session? Thank's and regard's

      Sasmi

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Session will kill automatically after the defined time frame.

      Parwej Ahamad ahamad.parwej@gmail.com

      1 Reply Last reply
      0
      • S Sasmi_Office

        hi Friend's Suppose i have one application which having session time out set as 45 min, now the scenario is suppose one user login and activate that session and close the browser without login off. what happen to that session? Is that session automatically terminate by garbage collection? Or still remain active and if so then how to handle this session? Thank's and regard's

        Sasmi

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Session is maintained on server. So you don't need to worry about session time out. If the session is active and user close the browser, the particular session will automatically goes down when it reaches to session time out. Now, if you want to perfrom some operation on session timeout or you want to clear the data base information while user log off the application, you need to handle the Session_End Event in global.asax and you may need to trap the browser close also.

        Cheers ! Abhijit Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        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