I have a Django application and am configuring some security settings. One of the settings is the SESSION_COOKIE_HTTPONLY
flag. I set this flag to True.
On session creation (login) I can see the session HTTPOnly
flag set if I inspect cookies. On logout, the server sends back a session cookie update with an empty value to show that the cookie has been destroyed. This empty cookie is not sent back with the httpOnly
flag set.
My question: Is this a security concern? Is there a way to force Django to set this flag on logout? Or is this just expected behavior, and is not a security concern, since the session cookie that is returned is blank?