raising an error if the session file is not set when using extra