Dual Session

Gives each auth collection its own session cookie so admin and frontend logins coexist

Community 6 532/wk MIT v0.1.0-beta.3

Installation

pnpm add @10x-media/dual-session

About

Dual Session gives each auth collection in Payload its own login cookie, so an editor signed in to the admin panel and a customer signed in on your website can stay logged in at the same time. Without it, Payload writes every collection's login into one shared cookie, and signing in on the website in the same browser signs the editor out of the admin.

You choose which collections get their own session. Each one keeps its normal login, lockout and verification rules, and the admin panel keeps the shared cookie. A single users collection can also be split by role, so staff keep the shared session while website visitors get a separate one.

Package info

Package name
@10x-media/dual-session
Latest version
0.1.0-beta.3
Unpacked size
158 kB
License
MIT
Weekly downloads
532
Last publish
Nov 13, 2026

More from 10x-media

View profile

Adds client-side undo and redo to Payload admin document forms

Sends signed HTTP webhooks when Payload documents are created, updated or deleted

Opens collections, globals and admin views in a floating panel with shareable links

Ops dashboard, worker process and queue controls for the Payload jobs queue

Alternative simplified and step-by-step edit forms for Payload collections

Builds forms in the admin, renders them headless, and runs actions on each submission

Similar plugins

More in Auth

Birth month and year check at sign-up that flags minors by country and region

Lets one Payload admin panel manage content for many separate tenants

Linked accounts and role hats, with a second factor before switching to a sensitive role

Sells digital products with signed download links that expire and stop on refund

Adds passkey sign-in and passkey management to the Payload login and account screens

Lets AI assistants read and edit Payload content over MCP with scoped API keys