The client should try and keep the serverside session open as long as the page is open. If it loses the connection it should let the user know.