10 Replies Latest reply on Nov 25, 2010 9:31 AM by Michael Schuetz

    Seam session outlives the GateIn session

    René Vedstesen Newbie

      I have created a very simple portlet containing a seam bean that supplies credentials for the current user.

       

      The portlet was created by using a maven archetype:

       

      mvn archetype:generate -DarchetypeGroupId=org.jboss.portletbridge.archetypes -DarchetypeArtifactId=seam-basic -DarchetypeVersion=2.0.0.CR1 -DgroupId=simple -DartifactId=Simple -DarchetypeRepository=http://repository.jboss.org/maven2/

       

      GateIn version: 3.0.0-GA

      PortletBridge version: 2.0.0.CR1

       

      My problem is that when I sign out of GateIn my seam session survives,  and when I sign in as a new user, I still get the username of the previous  user. I thought that the portlet bridge would end my seam session when I sign out of the portal and thereby killing my currentUser bean?

       

      What is the correct approach to handling GateIn login/logout in my portlet? Any help will be appreciated

       

      Code for currentUser bean is attached.