save user id along with session id