code: def clean(self):
          
          if self.request:
              if not self.request.session.test_cookie_worked():
                  raise forms.ValidationError("Cookies must be enabled.")
          return self.cleaned_data
docs: Check user has cookies enabled