code: public void logout()
     {
        for (int i = 0, length = lifecycleListeners.size(); i < length; i++)
        {
           lifecycleListeners.get(i).onCloseSession(this);
        }
        this.sessionRegistry.unregisterSession(getId());
        this.live = false;
        if (!ALLOW_CLOSED_SESSION_USAGE && PropertyManager.isDevelopping())
        {
           this.closedByCallStack = new Exception("The session has been closed by the following call stack");
        }
     }
docs: {@inheritDoc}