I think this workaround is problematic because it relies on cookies: not everyone will have a cookie.