Chanakya Gupta wrote:Summing up from Dieter and Sourabh,
- any part of the webapp can access this sessionid
(with access to request and event)
The part in the parenthesis is important here.
A ServletContextListener, for example, would not be able to access a session.
Likewise the init method in a
servlet has no way to access any session information because servlets can be configured to be loaded when the container starts up, before any actual requests have been made.