Hi, Swapnel. The page that declares <%@page session="true" %>, tells the container that this page participates in session. So the container creates session implicit object. If it is declared with "false", the container will not provide session implicit object. So, is not able to participate in the session.
Joined: Mar 05, 2009
what if I create session object in the scriptlet.
Will it create new session or return the same one ?
Joined: Apr 21, 2008
Hi, Swapnel. If we say<%@ page session="false" %>, then the session will not available to the page, even if you call pageContext.getSession() in scriptlet.