Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Closed Thread
user login / logout tracking
Old 10-12-2009, 03:31 PM user login / logout tracking
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
I want to track a user's login length and send that number to a database. Can anyone help?
aigb_mcd is offline
View Public Profile
 
 
Register now for full access!
Old 10-12-2009, 03:46 PM Re: user login / logout tracking
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Unless the user actually logs out specifically there is no way to determine how long they were actually logged in.

You could track the session ID and timestamp that, but that will end 20 minutes after the last client/server communication.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 10-12-2009, 03:48 PM Re: user login / logout tracking
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
hmm,, well yes i would have the user log out. i just need a way to see the time from login to log out.
aigb_mcd is offline
View Public Profile
 
Old 10-12-2009, 03:51 PM Re: user login / logout tracking
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,515
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
yep

store the time they login then deduct that from the time they logout

Use the DateDiff function.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 10-13-2009, 02:35 AM Re: user login / logout tracking
infotech rules's Avatar
Super Talker

Posts: 129
Name: Sidney shieldon
Trades: 0
Yeah you can do that. The session can be stored for each users or if you add additional features it could provide you detail about login time of each user. In other cases you can just subtract the time they logged in and logged out and get the required result.
infotech rules is offline
View Public Profile
 
Old 10-20-2009, 05:59 PM Re: user login / logout tracking
aigb_mcd's Avatar
Skilled Talker

Posts: 52
Trades: 0
what would that code look like?
aigb_mcd is offline
View Public Profile
 
Old 12-22-2009, 12:48 AM Re: user login / logout tracking
Novice Talker

Posts: 14
Trades: 0
You could do this using an ajax or json request in the background that updates an page with the last visit time with the first time logged being the start time.
jayrob is offline
View Public Profile
 
Old 01-11-2010, 12:27 AM hi,can you explain the more definations about this question.
Banned

Posts: 2
Trades: 0
Hi sir,
i hope you are satisfy my answer


This script tracks user login and logout to a .TXT (or could be a .CSV) file for easy tracking. Makes it easy to find where a user is logged in, who all has been using a computer, if users are logging out properly, etc. I make shares on a server called loginandout$ and computers$ (include the $ so that you can give users and computers write rights, but just by browsing to that server they cannot see the share names). After each REM statement is a separate script - login, logoff, startup, and shutdown.


Thank you.
skillgame is offline
View Public Profile
 
Closed Thread     « Reply to user login / logout tracking
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27730 seconds with 12 queries