How to track users login/logout times on site in asp.net using c#?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kashok
    New Member
    • Mar 2008
    • 5

    How to track users login/logout times on site in asp.net using c#?

    hi,

    how to track users login/logout time on our site and store it in database


    Thank U
    Ashok
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    When the user clicks submit, in the onclick function you create a variable with the value of the date in the format that you want, date.now(), then connect to the database execute your insert query. HTH.

    Comment

    • senol
      Banned
      New Member
      • Jun 2008
      • 6

      #3
      login session["ID"] = DB_TABLE_ID

      if(session["ID"] !=null)
      {

      }
      else session["ID"] remove logout

      Comment

      • Blessmac
        New Member
        • Dec 2010
        • 3

        #4
        I found a beautiful tool - Logon Sentry. It's also really powerful and easy-to-use!

        Comment

        Working...