Django : In a view how do I obtain the sessionid which will be part of the Set-Cookie header of following response?
I think you should be able to access this via request.session.session_key
In case of views that contain login or logout,
this sessionid is different from the one submitted in request's Coockie header.
I need to retrieve it before returning response for some purpose.
How can I do this ?