---
title: User Delete/Login/Logout stage
slug: v5/user-deleteloginlogout-stage
description: Learn about the various stages involved in effectively managing user actions within a system. Explore how the User Delete stage removes pending users from the system, the User Login stage facilitates enrollment and authentication flows, and the Terminate 
docTags: 
createdAt: 2023-07-19T12:45:55.996Z
---

## User Delete

This stage is designed to be used in a flow that removes a user from the system, and it deletes the user who is currently in the pending state. Additionally, the user is removed from the current session.

## User Login

The purpose of this stage is to attach a `pending user` to the current session. It can be utilized during an enrollment flow after `user_write`, or during an authentication flow after a `password` stage.

::::Tabs
:::Tab{title="Session duration"}
By default, the session is set to expire when you close your browser. This can be customized so that you can set the session to expire after any duration using the syntax of `hours=1,minutes=2,seconds=3`

The following keys are accepted: *Microseconds, Miliseconds, Seconds, Minutes, Hours, Days, Weeks.*
:::

:::Tab{title="Stay signed in offset"}
When this is set to a higher value than the default *seconds=0*, a prompt is shown, allowing the users to choose if their session should be extended or not. The same syntax as for *Session duration* applies.
:::

:::Tab{title="Terminate other sessions"}
When enabled, previous sessions of the user logging in will be revoked. This has no affect on OAuth refresh tokens
:::
::::

### User Logout

The stage is the opposite of **User Login** Stages, which means that it logs out the user by removing them from the current session.

