Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于包含登录或注销的视图, 此 sessionid 与在请求的 Coockie 标头中提交的不同。 我需要在出于某种目的返回响应之前检索它。 我怎样才能做到这一点 ?
我认为您应该可以通过request.session.session_key
request.session.session_key