Using window object as a user session