logout
Remove the authenticated user's ID from the request and flush their session data.
def logout(
request: HttpRequest
) - > null
Remove the authenticated user's ID from the request and flush their session data.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The current web request object containing the session and user to be cleared. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the request object is modified in-place. |