title: Example for CDI-SessionScoped LogIn with TomEE
body: <p>i'm currently fighting with TomEE, JSF and CDI (i think).</p>
  
  <p>Is there any example out there which has "@javax.enterprise.context.SessionScoped" annotation using TomEE 1.5.1 (or current snapshot)?</p>
  
  <p>I DONT want to use @ManagedBean or something else from javax.faces, just plain CDI.</p>
  
  <p>My problem is: when i change some @SessionScoped user session instance i end up in having a new sessionID (session fixation problem?!?).</p>
  
  <p>My Use-Case:
  I want to have a login on one page and have the possability to login from anywhere, the user comes from a JPA-layer which scope i don't know exactly if have to choose.</p>
  
  <p>Is there another way to archieve this?!</p>
  
  <p>I already got this pages, but didn't helped me out:</p>
  
  <p><a href="http://openejb.979440.n4.nabble.com/Guest-user-td4655258i20.html" rel="nofollow">http://openejb.979440.n4.nabble.com/Guest-user-td4655258i20.html</a></p>
  
  <p><a href="https://issues.apache.org/jira/browse/TOMEE-734" rel="nofollow">https://issues.apache.org/jira/browse/TOMEE-734</a></p>
  
  <p><a href="https://issues.apache.org/jira/browse/TOMEE-745" rel="nofollow">https://issues.apache.org/jira/browse/TOMEE-745</a></p>
  
  <p>Thanks for any help!</p>