You can set the authentication timeout with the BasicFormAuthenticator.
The timeout property specifies the logout expiration
in milliseconds. If this property is not specified, it sets the timeout to be the
default of -1 (infinite, i.e., no logout expiration).
To set the timeout property:

