This is my current sessionId
cookie attributes:
Set-Cookie: sessionid=3jdpjxgepk49vrnhbabdvju3r80ci581; expires=Mon, 06-Aug-2018 12:40:14 GMT; HttpOnly; Max-Age=1209600; Path=/
I want sessionId
to be secure with the secure
attribute:
Set-Cookie: sessionid=3jdpjxgepk49vrnhbabdvju3r80ci581; expires=Mon, 06-Aug-2018 12:40:14 GMT; HttpOnly,secure; Max-Age=1209600; Path=/
I have tried adding the following attribute in settings.py
:
SESSION_COOKIE_SECURE = True
However, I am still not getting the secure
attribute in sessionId
.
Any alternative solution for this?