update session helper