-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Andy Jefferson wrote:
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> I've been using JSDK 2.1 and its provided web server and using
> HttpSession to store objects for a users session in a servlet. Now, in
> JSDK2.1 there is the HttpSession setMaxInactiveTime() method so you can
> set the duration of a 'session'. I'm now using JSDK 2.0 with JServ 1.0
> and Apache 1.3.6 on Solaris. Such a method is not available in the JSDK,
> but is it available with Apache ? or som other way ?
> How do I get the same effect of keeping sessions active for long periods
> ?
>
Apache doesn't know anything about servlet sessions, so you won't find any
help there.
The setMaxInactiveInterval() was added in the 2.1 version of the servlet
API, which Apache JServ 1.0 does not support. However, you can set the
session timeout for all created sessions in the zone properties file, using
property "session.timeout". The value is expressed in milliseconds.
Craig McClanahan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]