Skip to main content

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

NameTypeDescription
requestHttpRequestThe current web request object containing the session and user to be cleared.

Returns

TypeDescription
nullNothing is returned; the request object is modified in-place.