这个问题着实让我费了好大功夫,本来想放弃Rememberme功能了,后来在邮件列表中发现了解决之道,特此贴出来为大家共享.
- <bean id="httpSessionContextIntegrationFilter" class="org.acegisecurity.context.HttpSessionContextIntegrationFilter">
- <property name="context">
- <value>org.acegisecurity.context.SecurityContextImpl<!---->value>
- <!---->property>
- <property name="forceEagerSessionCreation" value="true"/>
- <!---->bean>
注意:
<property name="forceEagerSessionCreation" value="true"/>这里添加了这个属性,并且设置为true;
邮件列表地址:http://opensource.atlassian.com/projects/spring/browse/SEC-183
贴出原文给大家分享一下:
HttpSessionContextIntegrationFilter now provides an forceEagerSessionCreation property (defaults to false). If set to true, it will cause a HttpSession to be created at the commencement of each web request. When the authentication mechanisms later run, they will use the constructor of WebAuthenticationDetails which does not force a HttpSession to be created, thus extracting a Session ID if the session was already available (either through normal creation operations or the forceEagerSessionCreation property) or leaving the Session ID as null if no HttpSession was available.
The anonymous and remember-me authentication mechanisms have been amended to not force session creation. Those using concurrent session support with either (or both) of these authentication mechanisms will be required to set HttpSessionContextIntegrationFilter.forceEagerSessionCreation = true.
注:在acegi的1.0.3和1.0.4版本中测试通过
分享到:
相关推荐
NULL 博文链接:https://weigang-gao.iteye.com/blog/2234233
NULL 博文链接:https://weigang-gao.iteye.com/blog/2234234
acegi,acegi,acegi
因tomcat7使用redis共享session,其他的包存在问题,自己编译后处理通过。 该包是在https://github.com/jcoleman/tomcat-redis-session-manager 将源码编译后的包。
Acegi解决权限问题,内含全部代码,包括文档及配置文件的说明,可以运行起来。
不错的ACEGI 教程
NULL 博文链接:https://weigang-gao.iteye.com/blog/2234232
Acegi文档 spring acegi 详细文档
Acegi安全系统,是一个用于Spring Framework的安全框架,能够和目前流行的Web容器无缝集成。它使用了Spring的方式提供了安全和认证安全服务,包括使用Bean Context,拦截器和面向接口的编程方式。因此,Acegi安全...
Acegi中文参考手册,提供JAVA统一接口登陆
spring+acegi+中文手册spring+acegi+中文手册spring+acegi+中文手册spring+acegi+中文手册spring+acegi+中文手册spring+acegi+中文手册spring+acegi+中文手册spring+acegi+中文手册spring+acegi+中文手册spring+...
acegi 框架 介绍 spring 安全
Acegi (version1.0.4)中文参考手册.Acegi Security为基于J2EE的企业应用软件提供全面的安全解决方案。正如你在本手册中看到的那样,我们尝试为您提供有用的,高可配置的安全系统。
Acegi能做什么 Acegi的体系结构 Acegi核心组件 典型的web认证过程 Acegi的登陆认证 Acegi对安全对象的访问控制 Filter 组件 Acegi的不足之处
Acegi安全系统,是一个用于Spring Framework的安全框架,能够和目前流行的Web容器无缝集成。它使用了Spring的方式提供了安全和认证安全服务,包括使用Bean Context,拦截器和面向接口的编程方式。因此,Acegi安全...
Acegi(version1.0.4)中文参考手册.doc
NULL 博文链接:https://zw7534313.iteye.com/blog/2224254
acegi-security 1.0.2.jar
acegi,spring的安全验证框架