for issue #40 update session table