Skip to content

risunCode/SesWi-Session-Manager

Repository files navigation

SesWi — Session Manager

Chrome extension for saving and restoring login sessions. Captures cookies, localStorage, sessionStorage, and TOTP 2FA secrets per domain. Press Ctrl+X+X to quickly erase current tab data (cookies, history, cache).

Features

  • Save & Restore — Save complete login sessions and restore them later
  • 2FA Manager — Store TOTP secrets with auto-updating codes, QR scan from active tab, manual entry, issuer grouping, search
  • Smart Expiration — Tracks cookie expiration based on longest-lasting cookie (experimental)
  • Domain Groups — Auto-groups sessions by domain for easy management
  • Backup/Export — JSON, Netscape, Cookie Editor, or OWI (AES-256-GCM encrypted) formats; per-type (sessions/2FA)
  • Batch Operations — Bulk backup, delete expired, or manage by domain
  • Import Cookies & Netscape — Paste raw cookies (multiple formats) or import from .json, .txt, .owi file
  • Clean Tab (Ctrl+X+X) — Double-tap Ctrl+X to erase current tab cookies, localStorage, history, cache. Opens confirmation modal on first tap, executes on second
  • Reset All Data — Factory reset from Manage tab, clears all sessions, 2FA entries, master password, and config
  • Native Encryption — Web Crypto API (AES-256-GCM) with PBKDF2 key derivation
  • Randomized Storage — Session data stored under a unique random key per installation
  • TOTP Auto-Copy — Click 2FA card body to copy current code to clipboard with success toast

Showcase

Current Tab Groups Tab 2FA Tab Manage Tab
Current Tab Groups Tab Screenshot pending Manage Tab

Installation

  1. Clone/download this repository
  2. Run npm install && npm run build
  3. Open chrome://extensions → Enable Developer mode
  4. Click "Load unpacked" → Select the dist folder

Usage

  • Current tab — Sessions for active domain. Ctrl+X twice = clean tab data
  • Groups tab — All sessions grouped by domain
  • 2FA tab — TOTP secrets with auto-updating codes, QR scan, manual entry
  • Manage tab — Backup, restore, manage by domain, delete expired, clean tab, export tab data, reset all, check for updates

Keyboard Shortcuts

Shortcut Action
Ctrl+N Open Add Session modal
Ctrl+X (once) Open Clean Tab confirmation modal
Ctrl+X (twice) Immediately erase current tab cookies, storage, history & cache

Add Session Modes

Mode Description
Capture Tab Capture cookies + localStorage + sessionStorage from active tab
Import Cookies Paste raw cookies in any supported format with live preview
Import File Import from .json, .txt, or .owi backup file (name field assignable)

2FA Add Modes

Mode Description
Scan QR Capture visible tab → jsQR decode → preview → save
Manual Enter issuer, account, secret, and algorithm manually

Export Formats

Format Contents
JSON { cookies, localStorage, sessionStorage }
Cookie Editor Cookie array compatible with Cookie Editor extension
Netscape Browser-compatible cookie file (curl/wget)
OWI AES-256-GCM encrypted JSON backup

Permissions

Permission Purpose
cookies Read/write cookies
storage Store sessions locally
scripting Access localStorage/sessionStorage
tabs Get active tab info
activeTab Capture visible tab for QR scan
history Clean browsing history
browsingData Clear cache
favicon Display website favicons in session cards
contextMenus Right-click context menu items

Development

npm install
npm run dev      # Development with watch
npm run build    # Production build
npm test         # Run Vitest suite

License

MIT License — See LICENSE file for details.

Credits

About

a Chrome Extension that simply manage cookie, 2FA & session securely, supporting netscape export, json raw, and encrypted save

Topics

Resources

Stars

16 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors