Is there any way to listen to a logging out event in SharePoint? We have event listeners when a list is created, so that got me thinking if there is one which will tell me if a user is logging out of the system or not.
Thanks for your time.
Is there any way to listen to a logging out event in SharePoint? We have event listeners when a list is created, so that got me thinking if there is one which will tell me if a user is logging out of the system or not.
Thanks for your time.
if the user manually logs out, you can hook code in the 12/TEMPLATE/Layouts/logout.aspx page. There is no (default) session in SharePoint and it would usually be persisted in SQL Server (SQL Server persistence has no Session_End event).
In the end, most people would have some sort of job that checks activity, you could store in-memory info creating cache keys with the usernames and create a similar type of session management and run your code on the callback for the cache expiration.
here is also another alternative.
http://blogs.msdn.com/pranab/archive/2007/12/13/using-http-module-for-sharepoint-2007-moss-wss-site-using-fba-and-rsa.aspx which seems to be alot less intrusive