public HttpSession getSession() {
        return requestDetails.getSession();
    }
Returns the HttpSession associated with this set of credentials.
<p>
This is a convenience function that is equivalent to invoking
{@link RequestDetails#getSession()} on the {@link RequestDetails}
returned by {@link #getRequestDetails()}.
<p>
<strong>NOTE: Guacamole itself does not use the HttpSession.</strong>
The extension subsystem does not provide access to the session object
used by Guacamole, which is considered internal. Access to an HttpSession
is only of use if you have another application in place that
<em>does</em> use HttpSession and needs to be considered.

@return
    The HttpSession associated with this set of credentials, or null if
    there is no HttpSession.
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Credentials.java