set session to session passed via hook