Manage connection status via cookie.