Added session_dir setting