-
1. Re: RememberMe example?
patrickmadden Apr 25, 2007 4:17 AM (in response to liudan2005)What behavior are you seeing. Its working perfectly for me the way you have it written in your post.
Any exceptions etc?
What version of Seam and JBoss are you using?
Finally, I believe you must have cookies enabled but I'm not an expert. Just letting you know that what you have written works for me.
Thanks,
PVM -
2. Re: RememberMe example?
liudan2005 Apr 25, 2007 5:43 AM (in response to liudan2005)I'm using Seam 1.2GA and latest Jboss JEMS installer.
I ticked the rememberme box when log in. If I close IE and comes back again, it directs me to the login page. It seems login information is not saved in cookies. -
3. Re: RememberMe example?
patrickmadden Apr 25, 2007 6:24 AM (in response to liudan2005)If I were you I would download the 1.2.1 GA as I originally had problems with remember me a few releases back.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103412
Here is where you can can get 1.2.1 GA
http://labs.jboss.com/jbossseam/download/index.html
Hope this helps,
PVM -
4. Re: RememberMe example?
liudan2005 Apr 25, 2007 10:22 AM (in response to liudan2005)Tried 1.2.1.GA, still having the same problem. can't see why
-
5. Re: RememberMe example?
stu2 Apr 25, 2007 11:00 AM (in response to liudan2005)Seamgen produces a starter app with this working out of the box. Even if you don't use the seamgen-produced project, you can run it and see how it works.
-
6. Re: RememberMe example?
liudan2005 Apr 25, 2007 9:41 PM (in response to liudan2005)thanks for your help. I've tried seamspace and it seems to work, I still can see any reason why my app doesn't work.
Another question is, does rememberme feature provide auto-login? It seems it only saves the username, but user still have to enter their password to login manually each time they restart browser. -
7. Re: RememberMe example?
christian.bauer Apr 26, 2007 12:39 AM (in response to liudan2005)Another question is, does rememberme feature provide auto-login?
No, auto-login is evil. -
8. Re: RememberMe example?
dilator Apr 26, 2007 4:48 AM (in response to liudan2005)"christian.bauer@jboss.com" wrote:
Another question is, does rememberme feature provide auto-login?
No, auto-login is evil.
Unless you choose to implement Amazon-style auto login with secondary password prompt to perform secure actions...
...in which case the event org.jboss.seam.security.postRememberMe (or something like that!) is quite useful -
9. Re: RememberMe example?
christian.bauer Apr 26, 2007 4:59 AM (in response to liudan2005)And it has been discussed extensively before on this forum.
-
10. Re: RememberMe example?
liudan2005 Apr 26, 2007 10:32 PM (in response to liudan2005)finally figured out why it didn't work for me before. it's caused by "MyFacesExtensionsFilter", FacesContext.getCurrentInstance() returns null when I have myfaces extension filter installed.
-
11. Re: RememberMe example?
liudan2005 Apr 26, 2007 10:50 PM (in response to liudan2005)also noticed if page is directed from "org.jboss.seam.security.NotLoggedInException" defined in pages.xml, rememberme would stop working.
-
12. Re: RememberMe example?
liudan2005 Apr 26, 2007 11:41 PM (in response to liudan2005)It would be nice to have an event "org.jboss.seam.beforeAuthenticate", so I can manually populate values and call identity.login.