Fixing a security error when cookies are disabled.