-
1. Re: Strange things happen with seam security
amitev Jun 22, 2007 7:44 AM (in response to amitev)someone's there?
-
2. Re: Strange things happen with seam security
azalea Jun 22, 2007 8:10 AM (in response to amitev)Hi,
Maybe due to "RememberMe" ?
If so, delete the cookie which name is "org.jboss.seam.security.username" in your browser.
If you don't need "RememberMe", remove the checkbox in login page. -
3. Re: Strange things happen with seam security
amitev Jun 22, 2007 9:25 AM (in response to amitev)Hi. I don't have rememberme checkbox on my login page.
-
4. Re: Strange things happen with seam security
shane.bryzak Jun 23, 2007 1:39 AM (in response to amitev)Identity.logout() invalidates the session, so the username should be cleared along with everything else. Are you sure it's not your browser that's auto-completing the login form for you?
-
5. Re: Strange things happen with seam security
gavin.king Jun 23, 2007 2:47 AM (in response to amitev)Well, actually the session isn't invalidated until the end of the request. So if you render a page with a login form on it, it will remember the username (but not the password, of course).
-
6. Re: Strange things happen with seam security
amitev Jun 23, 2007 4:18 AM (in response to amitev)Yes. I render a page with a login form on it. Idea for workaround of this - to show a page after session invalidation?
-
7. Re: Strange things happen with seam security
amitev Jun 23, 2007 4:24 AM (in response to amitev)The problem is that when the page is redisplayed after logout and i the submit button simply rerenders the page without invoking the login action
-
8. Re: Strange things happen with seam security
amitev Jun 23, 2007 4:26 AM (in response to amitev)I guess i have to force a redirect but how?
-
9. Re: Strange things happen with seam security
gavin.king Jun 23, 2007 5:32 AM (in response to amitev)Add a navigation rule in pages.xml, of course:
<navigation from-action="#{identity.logout}"> <redirect view-id="...."/> </navigation>
Or maybe just:<navigation from-action="#{identity.logout}"> <redirect/> </navigation>
If you want to stay on the current page. -
10. Re: Strange things happen with seam security
amitev Jun 23, 2007 5:59 AM (in response to amitev)Works like a charm. Thank you!