I have configured following tag in my tomcat's web.xml. I waited for more than 2 minutes but still i am able to access the session. I came to know that there will be background thread run by tomcat to verify the expired sessions. I waited for more than 15 min still it seems this background thread not running .
Can Some one please let me know what is the http response code that we get when session is timed out ? Also how do i ensure that tomcat's background thread run's frequently?
<session-config>
<session-timeout>2</session-timeout>
</session-config>