The session cookie is created by Django which also dictates the cookie expiry (in fact the cookie has HttpOnly so can't be accessed by JavaScript).
I think the expiry can be controlled by SESSION_COOKIE_AGE:
https://docs.djangoproject.com/en/3.0/ref/settings/#session-cookie-age
The session cookie is created by Django which also dictates the cookie expiry (in fact the cookie has HttpOnly so can't be accessed by JavaScript).
I think the expiry can be controlled by SESSION_COOKIE_AGE:
https:/ /docs.djangopro ject.com/ en/3.0/ ref/settings/ #session- cookie- age