update session plugin