java - how does session timeout configured in web.xml works -


i have piece of code configured in web.xml file validate user session.

<session-config> <session-timeout>30</session-timeout> </session-config>

i want understand internal working how particular user validated , where, when user makes request after 30 mins.

a "session" identified jsessionid identifier send every request client (e.g. browser). identifier either send per cookie or request parameter (query parameter). web container maintains map of active sessions under jsessionid identifier. if configured timeout has passed without request jsessionid identifier, session seen "timed out". data have put session lost (incl. eventual authentication information).


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -