How can I read session-timeout from web.xml?
I tried
getServletContext().getAttribute("session-timeout").toString();
but gives me a NullPointerException .
Also tried
getServletConfig().getInitParameter("session-timeout");
But gives me null, because obviously this is not init-param
source share