simple.http.session
Interface Maintainer
public interface Maintainer
The Maintainer
is used to determine how long
a session is to remain active between references. A session is
referenced when a HTTP client sends the session identifier with
a request. Once the session is referenced this is used to
determine, possibly using session variables, the duration that
the Lease
should be renewed for. This typically
should be in the region of ten to twenty minutes to limit the
window of opportunity for session hijacking and to ensure that
garbage sessions do not consume resources for very long.
- Author:
- Niall Gallagher
- See Also:
Lease
Method Summary |
void |
renew(Lease lease,
Store store)
This method is used to determine the length of time the
session should linger between references. |
renew
void renew(Lease lease,
Store store)
throws LeaseException
- This method is used to determine the length of time the
session should linger between references. The duration of
time a session spends lingering within the system without
being collected by the garbage collector is determined by
the
Lease
object. If this is renewed for a
specific peroid of time then the Store
will
remain within the system for that time peroid.
- Parameters:
store
- this is the store that has been referencedlease
- this is the lease associated with the store
- Throws:
LeaseException
- thrown if the lease has expired