A page directive
session attribute's default value is true, now.. it means the predefined variable
session should be bound to the existing session if one exists, otherwise a new session should be created and bound to it.
I think this must depend on the application server. I have JSPs running on Jetty 6.1 where no session is created if I set <@page session="false">.
I totally disagree with your statement because the session is created no matter whichever application server you use.
with <@page session="false"> you just mean that no sessions will be used, and attempts to access the variable session will result in errors.
You can't do this...
<% if (something) {
session.setAttribute(...); // use session here
} else {
// code that does NOT use session here
}
%>