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.

ParametersforceNotSecureShould we retrieve a session that will be transmitted over HTTP, even if this Request was delivered over HTTPS? (type: bool)
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.