When session is of type "undefined" use default session (this should not happen)