細說shiro之六:session管理
阿新 • • 發佈:2017-07-05
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管理