First you need to write down the following piece of code in web.xml :

<session-config>
<session-timeout>15</session-timeout>
</session-config>

Here we have set the session time out =...