# SetActiveParams

The parameters for the `setActive()` method.

| Name                             | Type                                                                                                                                                                                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                              |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| session                          | Session | string | null                                                                                                                                                                                               | The session resource or session ID (string version) to be set as active. If null, the current session is deleted.                                                                                                                                                                                                                                                                                                                        |
| organization                     | Organization | string | null                                                                                                                                                                                          | The Organization resource or Organization ID/slug (string version) to be set as active in the current session. If null, the currently Active OrganizationA user can be a member of multiple Organizations, but only one can be active at a time. The Active Organization determines which Organization-specific data the user can access and which Role and related Permissions they have within the Organization. is removed as active. |
| redirectUrl?                     | string                                                                                                                                                                                                                  | The full URL or path to redirect to just before the active session and/or Organization is set.                                                                                                                                                                                                                                                                                                                                           |
| session: The new active session. | decorateUrl(): A function that wraps your destination URL to enable Safari ITP cookie refresh when needed. Always use this to wrap your destination URLs. Learn more about decorateUrl() and Safari ITP cookie refresh. |                                                                                                                                                                                                                                                                                                                                                                                                                                          |

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
