日暮途远

日暮途远,涸辙难行;东隅已逝,桑榆非晚

Get All Connected Users in Acegi Security Framework

Sometimes you may be wanna get all users who connected to your server in order to manage them, such as force to kill someone’s session.  When sessionRegistry.getAllPrincipals() methods will get it’s play show, this method could get all the connetced users, although that implementation would prevent simultaneous logins with the same credentials.

 

Following is the example code to kill all connetced users sission:

 

点赞

发表评论

电子邮件地址不会被公开。

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">