What is session attribute in JSP?

JSPJava 8Object Oriented ProgrammingProgramming

The session attribute indicates whether or not the JSP page uses HTTP sessions. A value of true means that the JSP page has access to a builtin session object and a value of false means that the JSP page cannot access the builtin session object.

Following directive allows the JSP page to use any of the builtin object session methods such as session.getCreationTime() or session.getLastAccessTime()

<%@ page session = "true" %>
Updated on 30-Jul-2019 22:30:25