adding redirect for session.