I am using JSF 2.0 with JBoss AS 7. I am attempting to use a session to store some user related information, but the session is somehow being cleared after the first access of the session.
When accessing the session, I use the following contained in the Post Construct of a Session Scoped bean:
When a fresh user navigates to the site the session is null as expected. As a result they are prompted to enter in some information which creates a new session, also contained in a Session Scoped bean, as follows:
The user is then redirected to the outcome page and the session map is accessed as above, this time the session is not null as expected and contains the data as entered. When the user navigates to any other page the session again is null when attempting to access it, even though the JSESSIONID is the same in both cases.