java - Tomcat resets session for each request -
java - Tomcat resets session for each request -
i'm having interesting problem. work on servlet based web project session usage. when i'm working on development machine , local tomcat server, sessions fine. attributes added in 1 request, , used in without problems. after while, deployed website on remote machine , session management got broken.
as observed, tomcat fires sessioncreated event each request , gives same id. i'm using chrome's development tool check headers , browser seems fine sending session id. since tomcat renews session, loses attributes.
btw: application runs under subdomain such webproject.example.com
content of context.xml pretty basic
<context antijarlocking="true" path="" sessioncookiepath="/"/> what missing here?
thanks
make sure cookies enabled on client's browser. if not, there no persistent identifier provided session can retrieved. in case, request.getsession() create new session on each request.
java tomcat
Comments
Post a Comment