Answered by:
Is there any way to get the User's logout time in SharePoint 2010 ?

Question
-
We have a web application which contains several sub sites. And we want to generate a report which has to give the user’s login and logout time for the each sub site. We need to generate a report (as displayed below)
User module Date login log out
Domain/admin1 http://sharepoint:1111/RoutingRules/ 03/18/2013 10:30 10:45
Domain/admin1 http://sharepoint:1111/Knowledge/ 03/18/2013 10:45 10:55
Domain/admin2 http://sharepoint:1111/RoutingRules/ 03/18/2013 10:55 11:15
Trails:
- We have tried with the SharePoint content database WSS_UsageApplications (or WSS_Logging) "RequestUsage" view but I could not find the realted columns. Ex :- "Duration" in the view RequestUsage -- time for the front-end Web server to process the request
- While working on this issue we have found below observations in the forums. “There is no direct way to determine user logout event because there are many possible scenarios when user may go way from your site without clicking on logout button and his authentication cookies will be expired, so technically he will be logged out but without particular event.”
Queries:-
- Is duration useful to know the log out time? Or any other field or table is there to know the log out time?
- Any other third party tool available to achieve our requirement ?
- Please provide us to appropriate solution to achieve our requirement.
Regards, Deepak Koduri
Tuesday, March 19, 2013 7:21 AM
Answers
-
Its not available out of the box, however it is provided by third party tool, refer to the following post
http://blog.muhimbi.com/2011/06/reporting-site-collection-level-user.html
- Proposed as answer by Raghavendra Shanbhag Tuesday, March 19, 2013 6:25 PM
- Marked as answer by Hemendra Agrawal Monday, March 25, 2013 11:03 AM
Tuesday, March 19, 2013 9:55 AM -
hello
there is no direct way to determine user logout event (because there are many possible scenarios when user may go way from your site without clicking on logout button - and his authentication cookies will be expired, so technically he will be logged out but without particular event). Check this forum thread: I need to log out of the application when user closes the browser of a sharepoint 2007 internet website . It contains some useful info about this question.
Determining of login event is possible - however it depends on authentication type you use: FBA or NTLM. If you use FBA - you need to customize standard ASP.Net Login control and handle its LoggedIn event. If you use NTLM authentication - try to use http modules and handle AuthenticateRequest event of web application. Hope it will give you the direction.
- Proposed as answer by Raghavendra Shanbhag Tuesday, March 19, 2013 6:25 PM
- Unproposed as answer by Hemendra Agrawal Wednesday, March 20, 2013 5:33 AM
- Proposed as answer by Hemendra Agrawal Friday, March 22, 2013 10:15 AM
- Marked as answer by Hemendra Agrawal Monday, March 25, 2013 11:03 AM
Tuesday, March 19, 2013 3:00 PM
All replies
-
Its not available out of the box, however it is provided by third party tool, refer to the following post
http://blog.muhimbi.com/2011/06/reporting-site-collection-level-user.html
- Proposed as answer by Raghavendra Shanbhag Tuesday, March 19, 2013 6:25 PM
- Marked as answer by Hemendra Agrawal Monday, March 25, 2013 11:03 AM
Tuesday, March 19, 2013 9:55 AM -
hello
there is no direct way to determine user logout event (because there are many possible scenarios when user may go way from your site without clicking on logout button - and his authentication cookies will be expired, so technically he will be logged out but without particular event). Check this forum thread: I need to log out of the application when user closes the browser of a sharepoint 2007 internet website . It contains some useful info about this question.
Determining of login event is possible - however it depends on authentication type you use: FBA or NTLM. If you use FBA - you need to customize standard ASP.Net Login control and handle its LoggedIn event. If you use NTLM authentication - try to use http modules and handle AuthenticateRequest event of web application. Hope it will give you the direction.
- Proposed as answer by Raghavendra Shanbhag Tuesday, March 19, 2013 6:25 PM
- Unproposed as answer by Hemendra Agrawal Wednesday, March 20, 2013 5:33 AM
- Proposed as answer by Hemendra Agrawal Friday, March 22, 2013 10:15 AM
- Marked as answer by Hemendra Agrawal Monday, March 25, 2013 11:03 AM
Tuesday, March 19, 2013 3:00 PM