twisted.web.server.Request.getSession(self, sessionInterface=None, forceNotSecure=False)
method documentationtwisted.web.server.Request
View Source
Check if there is a session cookie, and if not, create it.
By default, the cookie with be secure for HTTPS requests and not secure
for HTTP requests. If for some reason you need access to the insecure
cookie from a secure request you can set forceNotSecure =
True
.
Parameters | forceNotSecure | Should we retrieve a session that will be transmitted over HTTP, even if
this Request was
delivered over HTTPS? (type: bool ) |