I am just guessing here, but I had a problem with rememberMe not workingthat I
solved by making my principal object serializable.RememberMe works by saving
your principal on the client browser by encrypting it and sendingit via cookie
so the browser can come in later and have the principal "remembered"If the
principal object isn't serializable, this process will not work.Gabriele Bulfon
wrote:> Hi,> I've folowed the "remember me" instructions, but it does
not work.> This is our ini:> > [main]> cacheManager =
org.apache.shiro.cache.MemoryConstrainedCacheManager>
securityManager.cacheManager = $cacheManager> > webtopRealm =
com.sonicle.webtop.shiro.WebTopRealm> webtopRealm.jndi = webtop2>
securityManager.realms = $webtopRealm> authc =
com.sonicle.webtop.shiro.WebTopFormAuthFilter> authc.loginUrl = /Login>
authc.successUrl = /Start> authc.usernameParam = wtusername>
authc.passwordParam = wtpassword> authc.rememberMeParam = wtrememberme>
authc.failureKeyAttribute = loginFailure> > [urls]> /public/** =
anon> /webtop/** = anon> /** = authc> > > Then our WebTopRealm
override doGetAuthenticationInfo(AuthenticationToken> at) to validate
user.> There I debug this:> > UsernamePasswordToken
upt=(UsernamePasswordToken)at;>
logger.debug("isRememberMe={}",upt.isRememberMe());> > and that is always
false, regardless of the login checkbox value.> Is there anything more I
have to do to let it work?> > Gabriele.> > > > > -->
View this message in context:
http://shiro-user.582556.n2.nabble.com/Remember-me-not-working-tp7580200.html>
Sent from the Shiro User mailing list archive at Nabble.com.>