1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
 

Recent Questions

!!! JSP Frequently Asked Questions !!!

How to Disable session in JSP page ?

!!!Answer!!!- From Technical Expert

Disabling the session in some pages will 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 JSPs, sessions are enabled by default.
By default <%@ page session="true" %>

Session object uses the server resources. Each session object uses up a small amount of system resources as it is stored on the server side. This also increases the traffic as the session ID is sent from server to client. Client also sends the same session ID along with each request. If some of the JSP pages on your web site are getting millions of hits from internet browser and there is not need to identify the user, so its better to disable the session in that JSP page.


You can tell the container to disable session in the JSP file by setting the session attribute to false. Set the session attribute of the page directive to false.

<%@ page session="false" %>

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

Answered By : null Replied Date : Dec 6 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Oct 16 2013
Answer :


Answered By : null Replied Date : Apr 28 2014
Answer :


Answered By : null Replied Date : Aug 2 2014
Answer :


Answered By : null Replied Date : Nov 4 2014
Answer :


Answered By : null Replied Date : Nov 11 2014
Answer :


Answered By : null Replied Date : Jan 6 2015
Answer :


Answered By : null Replied Date : Mar 3 2015
Answer :


Answered By : null Replied Date : Jul 7 2015
Answer :


Answered By : null Replied Date : Feb 20 2016
Answer :


Answered By : null Replied Date : Mar 20 2016
Answer :


Answered By : null Replied Date : May 29 2017
Answer :


Answered By : null Replied Date : Jul 8 2017
Answer :


Answered By : null Replied Date : Jul 8 2017
Answer :


Answered By : null Replied Date : Jul 8 2017
Answer :


Answered By : null Replied Date : Jul 9 2017
Answer :


Answered By : null Replied Date : Jul 9 2017
Answer :


Answered By : null Replied Date : Jul 9 2017
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy