1. 程式人生 > >細說shiro之六:session管理

細說shiro之六:session管理

log sub href del 通過 tin image pre 整合

技術分享
官網:https://shiro.apache.org/

 - org.apache.shiro.session.Session
    - org.apache.shiro.session.mgt.DelegatingSession
    - org.apache.shiro.web.session.HttpServletSession
    - org.apache.shiro.session.ProxiedSession
        - org.apache.shiro.session.mgt.ImmutableProxiedSession
        - org.apache.shiro.subject.support.DelegatingSubject$StoppingAwareProxiedSession
    - org.apache.shiro.session.mgt.ValidatingSession
        - org.apache.shiro.session.mgt.SimpleSession

shiro中的session都是通過SecurityManager創建,所以在不同的環境配置不同的SecurityManager實現。
技術分享
整理Shiro Session實現原理
Q: 如何與JAVA容器的Session整合?
A: 在web容器環境下,明確指定相應的session實現。

細說shiro之六:session管理