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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. session problem

session problem

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 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
    mukesh mr03
    wrote on last edited by
    #1

    In my project there is one table to store the user login details. When the user logout, i want to store the logout time in the table. But when the user close the browser without logging out, i can not store the Logout time. How can I get the Logout time in this case. Plz help me...

    S 1 Reply Last reply
    0
    • M mukesh mr03

      In my project there is one table to store the user login details. When the user logout, i want to store the logout time in the table. But when the user close the browser without logging out, i can not store the Logout time. How can I get the Logout time in this case. Plz help me...

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      In this case you will have to consider the session timeout time

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      M 1 Reply Last reply
      0
      • S Sandeep Akhare

        In this case you will have to consider the session timeout time

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        M Offline
        M Offline
        mukesh mr03
        wrote on last edited by
        #3

        could you plz give me any sample codes for that.

        S 1 Reply Last reply
        0
        • M mukesh mr03

          could you plz give me any sample codes for that.

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          Try to use Session_End event of Global.asax. If you are using ASP.Net 2.0 you have to manually include Global.asax from the list. In this event check if the user is not already logged out enter the time when session expires. Check the link might be helpfull,yo can do in this way http://www.codeproject.com/asp/user_logtime.asp[^] if you need more info google the subject you will get lot of info i think

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          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