Skip Headers

# Loading a Session Without Logging In

Previous

Next

The `XMLSessionConfigLoader` (see "Loading a Session From an Alternative Session Configuration File") lets you call a session using the `SessionManager` method `getSession`, without invoking the `Session` method `login`, as Example: Open Session with No Login shows. This lets you prepare a session for use and leave login to the application.

Open Session with No Login

    SessionManager manager = SessionManager.getManager();
    Session session = manager.getSession(
        new XMLSessionConfigLoader(), // XMLSessionConfigLoader (sessions.xml file)
        "mysession", // session name
        YourApplicationClass.getClassLoader(), // class loader
        false, // do not log in session
        false); // do not refresh session