djangodocs.org

309 sections across all versions Narrow to Django 6.0 (current) →

CSRF_USE_SESSIONS

Reference Settings

Default: False Whether to store the CSRF token in the user’s session instead of in a cookie. It requires the use of django.contrib.sessions.

dev

CSRF_USE_SESSIONS

Reference Settings Core Settings

Default: False Whether to store the CSRF token in the user’s session instead of in a cookie. It requires the use of django.contrib.sessions.

4.2 5.0 5.1 5.2 6.0