reverting back to older version of session and redirect