How can I disable resetting session timeout in Tomcat 5.5 for particular requests? On a page I have a javascript function that periodically sends ajax calls to the server. On server side I don’t want these calls to renew session lifetime.
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ok, since you didn’t like my first idea, I came up with this JSP demonstration.
It’s kind of a hack but it does work. To test, copy and paste.
Browse to the first JSP. It will start a session and set the inactive interval.
After being redirected, keep hitting the Refresh button on your browser.
No matter how times you request the second JSP, the current session will die.
test1.jsp
test2.jsp