fix session not working on multiple browser tabs