I have a small confusion in here. I believe we have two options for setting the Session in our servlets. The 1st being the <session-timeout> in web.xml which lets us specify in Minutes and other being session.setMaxInactiveInterval(noOfSeconds).
The confusion in here is if i have settings in both web.xml and on a servlets / jsps where i have used session.setMaxInactiveInterval(noOfSeconds)which one would be picked up ?
Secondly , I had used session.setMaxInactiveInterval(60) which means session would get invalidated after 1 minute after 1 minute it should get redirected to login.jsp where the user is asked to login again, When i try to access it , It still lets me access it. I want to know why is that happening. Why does it not go the login page ?
Thanks in advance for answering.
Meri Zindagi Hain Tab Tak.. Jab Tak Tera Sahara.... Har Taraf Tu Hi Tu Hain SAI Tera Hi Hain Nazara.....