Hi,
I have implemented the autologin feature (saving the cookie in the DB with both the user and password) and it seems to work, but not 100%. The problem is that I have a login page so that I can redirect users theer in case of a notLoggedInException. This is the code in pages.xml
<exception class="org.jboss.seam.security.NotLoggedInException"> <redirect view-id="/login.xhtml"> <message severity="warn">#{messages['org.jboss.seam.NotLoggedIn']}</message> </redirect> </exception>
This page works as expected if I don't use the rememberMe feature. The site redirects me there and then I have in components.xml the suitable observer to redirect the user back to the site he was trying to access.
BUT, if I try to access a restricted site (only for registered users), using the cookie that I have in the browser, it seems like the users is being correctly loggedIn, but I'm still being redirected to login.xhtml!!! After I'm in login, I can access every single page (which means I've been logged in, but I'm still redirected to the login page. Is there something I'm missing? I can paste more code if necessary.
Thank you a lot