How to not lose user session (id etc.) after closing browser tab? Refreshing page works fine, but otherwise user gets new id.