Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
How to track users login/logout times on site in asp.net using c#?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
kashok
New Member
Join Date:
Mar 2008
Posts:
5
#1
How to track users login/logout times on site in asp.net using c#?
Mar 21 '08, 04:49 AM
hi,
how to track users login/logout time on our site and store it in database
Thank U
Ashok
kenobewan
Recognized Expert
Specialist
Join Date:
Dec 2006
Posts:
4871
#2
Jun 22 '08, 12:42 PM
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
Post
Cancel
senol
Banned
New Member
Join Date:
Jun 2008
Posts:
6
#3
Jun 23 '08, 07:21 AM
login session["ID"] = DB_TABLE_ID
if(session["ID"] !=null)
{
}
else session["ID"] remove logout
Comment
Post
Cancel
Blessmac
New Member
Join Date:
Dec 2010
Posts:
3
#4
Dec 6 '10, 09:57 AM
I found a beautiful tool - Logon Sentry. It's also really powerful and easy-to-use!
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment