Clerk logo

Clerk Docs

Ctrl + K
Go to

Multi-session applications

Learn how to configure and work with multi-session applications


One of the most powerful features that Clerk provides out of the box is multi-session applications.

A multi-session application is an application that allows multiple accounts to be signed-in from the same browser at the same time. The user can switch from one account to another seamlessly. Each account is independent from the rest and has access to different resources. It's most clearly explained by the default <UserButton /> below.

Note that you can switch which account is active, add additional accounts, and manage each account independently. To enable a multi-session instance, you need to handle the following scenarios:

  • Switching between different accounts
  • Adding new accounts
  • Signing out from one account, while remaining signed in to the rest

There are two main ways to handle all the above: using Clerk Components or using a custom flow.

Looking for more information on session management? Check out our detailed guide.

Before you start


The first thing you need to do is to enable the multi-session feature in your Clerk instance.

From the Clerk Dashboard, select your application and instance, navigate to Sessions and choose Multi-session handling.

Enabling multi-session

That's all you have to do! Now you have a multi-session application!

Using Clerk Components

The easiest way to add multi-session features to your application is by using the <UserButton /> component.

This component has buttons add a new account, switch between accounts and sign out from one or all accounts.


Note that you don't need to pass any special options to the UserButton component. For more details on all available options, including customization options, please visit the <UserButton /> guide.

Custom flow

In case you want more customization, and you prefer full control over your UI, you can use Clerk's SDKs.

Active session/user


Switching sessions


Adding sessions

To add a new session, simply link to your existing sign in flow. New sign ins will automatically add to the list of available sessions on the client.To create a sign in flow, please check one of the following popular guides:

For more information on how Clerk's sign in flow works, checkout our detailed sign in guide.

Sign out active session

This version of sign out will deactivate the active session. The rest of the available sessions will remain intact.


Sign out of all sessions

This request will deactivate all sessions on the current client.


Was this helpful?

Clerk © 2022