This content has been marked as final.
Show 3 replies
-
1. Re: Seam security & user session...
jcg3 Jul 26, 2007 5:36 PM (in response to statelessbean)You can use the identity object to check if the user is logged in, get the user name, etc.
There is a method on identity to log out.
Within your JSF page you can simply refer to #{identity.username} and in your code you can do @In Identity identity; (org.jboss.seam.security.Identity).
There are many examples of how this works in the seam examples. -
2. Re: Seam security & user session...
shane.bryzak Jul 26, 2007 11:58 PM (in response to statelessbean)In general, I would just restrict the way the client interface is built to not display a login form if the user is already logged in. The seamspace (and other examples) do this already, take a look at template.xhtml and home.xhtml in seamspace.
-
3. Re: Seam security & user session...
statelessbean Jul 27, 2007 4:04 AM (in response to statelessbean)Yes Shane, I do like you offer, this is easies way:)
I simply remove login form and add logout button.