corrected names of hooks for set_session function