Revert "set session to session passed via hook"

This reverts commit d8554ae46fb48771e05e6b8c5934fd11c7076827.
set session to session passed via hook