Skip Headers

# Acquiring a Session From the Session Manager

Previous

Next

When the session manager loads a session that is not yet in its cache, the session manager creates an instance of the appropriate session type and configures it according to the `sessions.xml` file configuration.

Note: To best use the methods associated with the session type that is being instantiated, cast the session that is returned from the `getSession` method. This type must match the session type that is defined in the `sessions.xml` file for the named session.

This section explains the following:

- Loading a Session From sessions.xml Using Defaults

- Loading a Session From sessions.xml With an Alternative Class Loader

- Loading a Session From an Alternative Session Configuration File

- Loading a Session Without Logging In

- Reloading and Refreshing Session Configuration

- Refreshing a Session When the Class Loader Changes