Setting redirect path in session