How can I access request headers from a SessionListener?
I need to set a timeout on the current session when it is created. The timeout needs to vary based on a head
The HttpSessionListener does not have access to the request because it is invoked when no request has been made—to notify of session destruction.
HttpSessionListener
So, a Filter or Servlet would be better places to examine the request and specify the session timeout.
Filter
Servlet