开发者

Remove user session from all the browsers that login

开发者 https://www.devze.com 2023-04-11 20:52 出处:网络
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 dictiona

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号