Question :Is there a way I can set the inactivity lease period on a per-session basis?
(JSP)
Answer :Typically, a default inactivity lease period for all sessions is set within
your JSP engine 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. For example:
<%
session.setMaxInactiveInterval(300);
%>
would reset the inactivity period for this session to 5 minutes. The
inactivity interval is set in seconds.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Friday, March 13, 2009
Is there a way I can set the inactivity lease period on a per-session basis
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment