# Application Empty State: Session Expired State

Session expired screen showing the account for one click resume, a saved draft note, meta rows naming the policy, and sign in actions.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/session-expired-state
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Empty States](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/session-expired-state.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-empty-states-session-expired-state
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: avatar, avatars, button
- Installs to: `@/components/blocks/application-pro/empty-states/session-expired-state`

## About this block

Session Expired State is a full-page centered screen that
removes the panic from an automatic sign out. The Acme lockup
sits above a card that opens with a LockKeyhole icon, the
heading Your session expired, and a line confirming that
signing back in returns you to the exact page you were on. The
account is shown with an avatar so one click resumes it, a
muted note confirms the draft comment on Launch plan Q3
survived, and a ruled meta list names the facts: signed out at
14:32 UTC, the reason of 12 hours of inactivity, and the
workspace security policy that set it. Two buttons offer Sign
back in as Avery or Use a different account.

The session facts are a small array, so the time, reason, and
policy each have one place to change, and the avatar comes
from the shared avatars module. The footer points admins at
the inactivity limit under Settings then Security and notes
that trusted devices can stay signed in for up to 30 days.

## When to use

Reach for this block when a session times out mid task, wired
to your auth layer so the account, sign out time, and policy
reason are real. Preserve the draft the note promises; a
screen that claims saved work and loses it breaks trust.

A natural flow around it on an Application Pro page:

**Before**

- [Auth pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/auth-pages)

**After**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

## What you can display

One strong use is the idle timeout sign out. Other session
states:

- **Password changed elsewhere.** Every session ended after a
  credential update, with a fresh sign in required.
- **Device revoked.** An admin removed this device, with the
  reason and a note to contact the workspace owner.
- **Token expired.** A long lived API session lapsed, with the
  reauthorize step and the scope it restores.

> Tip: name the exact policy that ended the session and
> confirm any unsaved work survived; a bare you were logged
> out reads as data loss.

## More in Application Empty States

- [Archived Project State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/archived-project-state)
- [Cleared Inbox State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/cleared-inbox-state)
- [Coming Soon State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/coming-soon-state)
- [Deleted Resource State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/deleted-resource-state)
- [Empty Automations State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/empty-automations-state)
- [Empty Chart State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/empty-chart-state)
- [Empty Comments State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/empty-comments-state)
- [Empty Table State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/empty-table-state)
- [Empty Uploads Dropzone](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/empty-uploads-dropzone)
- [Error Boundary Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/error-boundary-card)
- [Error Page 404](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/error-page-404)
- [Error Page 500](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/error-page-500)
- [First Run Checklist Empty](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/first-run-checklist-empty)
- [Import In Progress State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/import-in-progress-state)
- [Maintenance Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/maintenance-page)
- [No Access Yet State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/no-access-yet-state)
- [No Data Yet State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/no-data-yet-state)
- [No Integrations State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/no-integrations-state)
- [No Search Results State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/no-search-results-state)
- [Offline State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/offline-state)
- [Onboarding Empty Dashboard](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/onboarding-empty-dashboard)
- [Payment Failed State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/payment-failed-state)
- [Permission Denied State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/permission-denied-state)
- [Rate Limited State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/rate-limited-state)
- [Search No Matches](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/search-no-matches)
- [Storage Full State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/storage-full-state)
- [Trial Expired State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/trial-expired-state)
- [Welcome Back State](https://www.shadcn-ui-blocks.com/blocks/application-pro/empty-states/welcome-back-state)
