Our Action class
implements SessionAware
, on page load for the first time, we are setting some data into the session
(session map which we get by implementing SessionAware
). we have a functionality which makes page re load, in this case session data is becoming null, when i further observed, the jsession id is being changed, i believe this is causing the issue, could you please share your thoughts on why this happens, how do i enforce my struts2 application to use the existing session.
This issue doesn't happen in my local environment, this is observed only when deployed on QA server (tomcat server deployed on unix environment)
Our application uses tomcat server.
Could any settings in tomcat can lead to this? or is this something to do with application code?