我使用 acegi-security-1.0.0 并希望为 cookie ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE 设置 maxAge(例如 18 天)。但是当我在浏览器中打开 cookie 时,这个 cookie 会在 2017 年到期...
<bean id="rememberMeServices" parent="txProxyTemplate">
<property name="target">
<bean class="org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices">
<property name="userDetailsService" ref="userDao"/>
<property name="key" value="desknetRememberMe"/>
<property name="parameter" value="rememberMe"/>
<property name="tokenValiditySeconds" value="2"/>
</bean>
</property>
<property name="transactionAttributes">
<props>
<prop key="autoLogin">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
谁能帮我?我做错了什么?
谢谢!