In Django we can set the session cookie name by setting SESSION_COOKIE_NAME in Django settings. Also you can change CSRF cookie name with CSRF_COOKIE_NAME.
But django-cookies-samesite will not work because 'sessionid' and 'csrftoken' is hard-coded in middleware (unless we add them inside SESSION_COOKIE_SAMESITE_KEYS).
In Django we can set the session cookie name by setting
SESSION_COOKIE_NAME
in Django settings. Also you can change CSRF cookie name withCSRF_COOKIE_NAME
.But django-cookies-samesite will not work because
'sessionid'
and'csrftoken'
is hard-coded in middleware (unless we add them insideSESSION_COOKIE_SAMESITE_KEYS
).