|
INTERVIEW QUESTIONS
J2EE
JSP
DETAILS
Question: Is there a way I can set the inactivity lease period on a per-session basis?
Answer: Typically, a default inactivity lease period for all sessions is set within your JSPengine admin screen or associated properties file. However, if your JSP engine supports the Servlet 2.1 API, you can manage the inactivity lease period on a per-session basis. This is done by invoking the HttpSession.setMaxInactiveInterval() method, right after the session has been created.
|
|
|
Category |
JSP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8146 users |
Added on |
9/16/2014 |
Views |
67077 |
Rate it! |
|
|
Question:
Is there a way I can set the inactivity lease period on a per-session basis?
Answer:
Typically, a default inactivity lease period for all sessions is set within your JSPengine admin screen or associated properties file. However, if your JSP engine supports the Servlet 2.1 API, you can manage the inactivity lease period on a per-session basis. This is done by invoking the HttpSession.setMaxInactiveInterval() method, right after the session has been created. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How do you pass control from one JSP page to another?
|
View Answer
|
|
Is there a way to reference the "this" variable within a JSP page?
|
View Answer
|
|
Can a JSP page process HTML FORM data?
|
View Answer
|
|
Can I stop JSP execution while in the midst of processing a request?
|
View Answer
|
|
How can I declare methods within my JSP page?
|
View Answer
|
|
Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
|
View Answer
|
|
How do I use comments within a JSP page?
|
View Answer
|
|
How does JSP handle run-time exceptions?
|
View Answer
|
|
How do I perform browser redirection from a JSP page?
|
View Answer
|
|
What JSP lifecycle methods can I override?
|
View Answer
|
|
How do you restrict page errors display in the JSP page?
|
View Answer
|
|
How do I prevent the output of my JSP or Servlet pages from being cached by the browser?
|
View Answer
|
|
Why does JComponent have add() and remove() methods but Component does not?
|
View Answer
|
|
How do I include static files within a JSP page?
|
View Answer
|
|
What are stored procedures? How is it useful?
|
View Answer
|
|
In the Servlet 2.4 specification SingleThreadModel has been deprecated, why?
|
View Answer
|
|
How many JSP scripting elements are there and what are they?
|
View Answer
|
|
How to Retrieve Warnings?
|
View Answer
|
|
What Class.forName will do while loading drivers?
|
View Answer
|
|
What information is needed to create a TCP Socket?
|
View Answer
|