Remove user session from all the browsers that login
If a member changes his password from a browser, all the sessions attached to that member should be removed. This is the scenario I want to handle. What I thought is to keep all sessions in a dictionary in memory l开发者_运维问答ike but is it efficient ? What can be the other solutions about this issue ?
Thanks in advance,
I think you'll be able to get list of all active sessions just as described here: http://weblogs.asp.net/imranbaloch/archive/2010/04/05/reading-all-users-session.aspx when you get each session you can do with this anything you want. For example you can get used from it (you'll have to set it there when session is created see List all active ASP.NET Sessions). Also you can Abandon some sessions Session.Abandon
精彩评论