Make sure the path of the cookie is set appcache for the whole domain