You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

12 lines
256 B

  1. from django.core.exceptions import SuspiciousOperation
  2. class InvalidSessionKey(SuspiciousOperation):
  3. """Invalid characters in session key"""
  4. pass
  5. class SuspiciousSession(SuspiciousOperation):
  6. """The session may be tampered with"""
  7. pass