JSP

JSP Projects

JSP Project

How to disable the session
Previous Home Next

 

In this page of the tutorial we are going to show you how to disable session creation in the JSP pages. for increasing the performance of the page we can Disabling the session in some pages which help to improve the performance of your JSP container.Every time a JSP is requested, JSP creates an HttpSession object to maintain state for each unique client. The session data is accessible in the JSP as the implicit session object. In JSP, sessions are enabled by default.

 session="false" this is used to deactivate the session in the particular page

 
<%@ page language="java" session="false"%>
<html>
<head>
<title>Session Disabled</title>
</head>
<body>
<p>Session is inactive form in this page
</body>
</html>

Session is inactive form in this page
Previous Home Next