开发者

LogoutHandlers in Spring Security

开发者 https://www.devze.com 2023-02-23 01:25 出处:网络
When are registered LogoutHandlers in Spring Security triggered? Only upon manua开发者_C百科l logout (obvious!) or also when the http session expires?Not when the session expires.

When are registered LogoutHandlers in Spring Security triggered? Only upon manua开发者_C百科l logout (obvious!) or also when the http session expires?


Not when the session expires.

Example: RememebrMeServices

See the class AbstractRememberMeServices, which also implements LogoutHandler. We use remember me services to keep user logged in until a user explicitly logs out (or until the remember-me cookie expires). Its main purpose is to take care of session expiration issue and it is usually added for users who frequently use the application (for example, administrators or customer service representatives who don't like to login every time their session expires).

0

精彩评论

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