session
Return current session state for SPA (logged_in, username, is_staff).
Args: request (Any): Request passed to this helper.
Returns: Any: Value produced by this call (type depends on inputs).
Examples:
session_info(None) # doctest: +SKIP
get/api/session/
Request
- The document declares no server URL.
- Auth: one of:
- API key in cookie sessionid
- none
Response
Changes
- info
added the optional property
to the response with the status
- info
- breaking
the response property
became optional for the status
- breaking