Hi,
I have the following scenario/problem:
I have configured persistent sessions for my application - a single app server running on a node and not in a server group. I have set the session mangement to write the session to the database after the end of every
servlet service() method. I then connect to the webapp with a browser and a session is created - the SESSIONS table in the database has rows associated with the session ID that is returned. This is correct and what I expect to see. My session management (except for the persistence) has default settings
As a
test I leave my browser open and stop the app server. I then restart the app server a couple of seconds after it has stopped and then click on the browser page to see the contents of my shopping cart. However, despite the fact that the session ID is the same an empty shopping cart is displayed.
Since I have set logging to Trace' in the web server plugin config file I can see that the session ID is received at the web server and sent on to WAS for processing. I can also see that it matched the CloneID that is attached to the session ID and sent it to the correct server.
My questions are:
Why was my shopping cart empty when the session was persisted to the database?
If I shutdown an application/app server rather than it failing are all sessions invalidated even if they have not timed out?
Does this single node need to be part of a Server Group in order for the app server to look in the database for the persisted session?
Thanks in advance for your help,
Steve