---
title: "Sessions"
icon : "bolt"
description: "View active sessions, shut one down, or push an in-game message to it."
---

# Sessions

A session is one running instance of your script. It starts when a whitelisted user runs your loader and ends when the user closes the game, the script disconnects, or you shut it down manually.

Sessions are scoped to a user. Act on them from the user's detail modal in the dashboard, or with session slash commands on the Discord bot.

<Warning title="Before you start">
  - Sessions only appear here when **Heartbeat Connection** is enabled on the script. Toggle it on from the script's settings, otherwise the Active Sessions tab stays empty even while users are running your script.
  - With Heartbeat on, EnvyAuth records each session's Roblox user ID, Roblox username, place, executor, and device fingerprint. See the [Privacy Policy](https://envyauth.my.id/privacy-policy) for the full list and retention period.
</Warning>

## From the dashboard

<Steps>

  <Step
    title   ="Open the user's detail modal"
    image   ="/assets/docs/_usermanual/sessions/hb/1.png"
    imageAlt="Users list with the eye icon highlighted on a user row"
  >
    Open the Users page (top level or inside a project) and click the eye icon on the user's row.
  </Step>

  <Step
    title   ="Switch to Active Sessions"
    image   ="/assets/docs/_usermanual/sessions/hb/2.png"
    imageAlt="User detail modal with the Active Sessions tab highlighted"
  >
    Click the **Active Sessions** tab. The badge next to the label shows how many sessions are live. If there are none, the tab reads "No active sessions".
  </Step>

  <Step
    title   ="Review the session row"
    image   ="/assets/docs/_usermanual/sessions/hb/3.png"
    imageAlt="Active sessions list with message and shutdown buttons highlighted"
  >
    Each row shows the player, when the session started, the executor, the script, and the Roblox place.

    Two action buttons sit on the right. The blue message icon pushes an in-game toast to the session. The red shutdown icon force-expires the session and kicks the user.
  </Step>

  <Step
    title   ="Send a message to the session"
    image   ="/assets/docs/_usermanual/sessions/hb/4.png"
    imageAlt="Send Message modal alongside the rendered toast on the loader"
  >
    Click the blue message icon. Enter a Title and a Description. The user sees both as a dismissible toast, and the session stays active after the message lands.
  </Step>

  <Step
    title   ="Shut down a session"
    image   ="/assets/docs/_usermanual/sessions/hb/5.png"
    imageAlt="Shutdown Session confirmation modal alongside the rendered kick screen"
  >
    Click the red shutdown icon. A confirmation modal asks for a Title and a Description, prefilled with a generic "Session Expired" message. The text you enter is the kick reason shown to the user. Once you confirm, the row is removed and the client is disconnected.
  </Step>

</Steps>

Both actions wait for the client to confirm before the dashboard reports success. If the client is briefly offline, the dashboard reports that the action will land on the next heartbeat.

## From the Discord bot

Every command is scoped to one project. If your account manages multiple projects, the bot opens a project picker after you submit.

### View and act on one session

```text
/view_session user:@someone
```

The bot replies with a list of that user's active sessions, up to 25. Pick one from the dropdown; the bot opens a detail panel with two buttons. The blue **Message** button opens a modal to enter a title and text, then delivers both as an in-game toast. The red **Shutdown** button asks for confirmation, then force-expires the session and kicks the user.

After either action the bot refreshes the list so you can act on another session without re-running the command. If a user has more than 25 active sessions, the bot lists the first 25 and points you to `/kill_session` for the rest.

### Direct commands

Use these to skip the dropdown, script the bot from another tool, or target a session not in the 25-option list.

| Command | What it does |
|---|---|
| `/shutdown_session user:@someone` | Shuts down every active session for that user in one call. |
| `/kill_session user:@someone session_id:` | Shuts down one specific session. The `session_id` field has autocomplete suggestions. |
| `/message_session user:@someone message:` | Sends the same toast to every active session for that user. |
| `/notify_session user:@someone session_id: message:` | Sends a toast to one specific session. The `session_id` field has autocomplete suggestions. |

Toast messages are limited to 256 characters.

### Bulk command behaviour

`/shutdown_session` and `/message_session` wait up to 25 seconds for each session to confirm. The reply summarises how many sessions terminated or received the toast, how many are pending acknowledgement, and how long the operation took. Sessions that did not confirm in time still take effect on their next heartbeat.
