i need some help in two subjects:
1) it's possible to get a list of all users currently logged in to
sharepoint?
2) i need to prevent the same login to have multiple sessions in sharepoint
(different browser's opened with the same login) is this possible?
TIA
kras
I would post this in the dev group and see if they can direct you to
something that might meet your needs.
-Stephen
The way I do it is using the ASP.NET Cache. When a user logs in I check the
Cache using his username as the key. If an items exists we know that the
user is already logged in. After logging in, create a new cache item with
the username as key and set a sliding expiration of Session.Timeout.
Then add Application_PreRequestHandlerExecute to Global, and retrieve the
cache item. Since this handler is executed on each request, it will reset
the expiration value.
If you want more than one login, but still want to limit them, you can store
a counter in the cache, and increase/decrease on logout.
Hope that helps
Sincerely,
Tobias Karlsson
"krasman" <kra...@hotmail.com> skrev i meddelandet
news:uIWUw6sg...@TK2MSFTNGP04.phx.gbl...