Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

strapi-plugin-magic-sessionmanager

Latest version: v4.16.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: schero94
4 Stars
2 Forks
14 Versions
3.0K Downloads
JavaScript Repo language

Scan summary

strapi-plugin-magic-sessionmanager was last scanned on 24 Nov 2026 at version 4.16.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 5 were published within 7 days (18–24 Nov 2026).
  • Findings: No rules fired in version 4.16.0.
  • Downloads: 2,994 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.16.0 LATEST 24 Nov 2026 No rules fired
4.15.0 24 Nov 2026 No rules fired
4.14.3 24 Nov 2026 No rules fired
4.14.2 18 Nov 2026 Not shown
4.14.1 18 Nov 2026 Not shown

No rules fired in 4.16.0

Findings

Findings for v4.16.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.16.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Magic Session Manager

See who is signed in to your Strapi 5 app, end any session in one click, and stop password guessing before it reaches your users.

Magic Session Manager records every sign-in through Users & Permissions as a session. Admins see who is online, end single sessions or all sessions of a user, block accounts and review sign-in history. Your app gets logout routes, a "my devices" list for users, failed-login lockout and optional country rules. It works with Strapi's native refresh-token sessions and with several server processes on one database. A separate Admin panel view shows who is signed in to the Strapi admin panel itself and signs an admin out of one browser or everywhere.

Free and open source under the MIT license. Every feature works without an account, key or activation, and the plugin sends nothing to its author.

npm version npm downloads CI build status License: MIT Strapi 5.50+ Documentation site

Live docs: https://schero94.github.io/Magic-Sessionmanager/ · npm · Changelog · Report a bug · Discussions


Contents

  • Features
  • Quick start (1 minute)
  • Screenshots
  • Core concepts
  • Screens
  • Compatibility
  • Install
  • Session management modes
  • Configuration
  • Location data and GeoIP
  • Login protection
  • Alerts
  • Content API
  • Examples
  • Optional route policy: session-required
  • Admin API and permissions
  • Admin activity and sign-in history
  • Running several instances (Railway replicas, pm2 cluster)
  • Performance
  • Security and privacy
  • Troubleshooting
  • FAQ
  • Migration and upgrading
  • Development and tests
  • Contributing
  • Maintenance status
  • Languages
  • Showcase your company
  • License

Features

Area What you get
Overview A sessions dashboard with Active, Idle and Ended counts, search, filters, CSV and JSON export, and a details dialog per session (device, browser, IP address, location, and a security score when a risk data source is set up).
Control End one session, end all sessions of a user, delete a record, or block a user. Ended sessions are rejected on the next request with 401 and a reason header.
Your users Content API routes for "my sessions", "current session", log out, log out everywhere and log out other devices. Each user only ever sees their own sessions.
Login protection Temporary IP lockout after failed sign-ins, Content API rate limits, optional rejection of VPN, proxy or low-score sign-ins (needs a risk data source), and country allow or block lists.
Location IP location from a local MaxMind GeoLite2 database (no third party in the sign-in path) or from ipapi.co, or turned off.
Alerts Security emails to the user through Strapi's Email plugin and sign-in notifications to Discord or Slack.
Admin integration A Sessions panel next to each user in the Content Manager and an Online users widget on the Strapi homepage.
Admin panel sessions Who can use the Strapi admin panel, who is signed in, on which browser and since when. Sign an admin out of one browser or everywhere; it takes effect on their next click.
Admin activity A sign-in history per admin (sign-ins, failed attempts, lockouts, sign-outs, who signed out whom) with IP address, browser and location, and optional Content Manager activity.
Native Strapi sessions Works with jwtManagement: 'refresh' (Strapi's own sessions and refresh tokens) and with 'legacy-support'.
Several processes Lockout, rate limits, jobs and settings stay consistent across pm2 workers and Railway replicas that share one database.
Privacy Stored tokens are encrypted (AES-256-GCM) and never returned. Retention deletes old history automatically. No telemetry.

Quick start (1 minute)

npm install strapi-plugin-magic-sessionmanager
// config/plugins.ts
export default () => ({
  'magic-sessionmanager': { enabled: true },
});
# a stable key for token encryption (startup fails without it in production)
echo "SESSION_ENCRYPTION_KEY=$(node -e "console.log(require('crypto').randomBytes(32).toString('base64'))")" >> .env
npm run build && npm run develop

Sign in to your app as an end user (POST /api/auth/local), open Session Manager in the admin menu and the new session is listed as Active. End it, and the same token gets 401 on its next request.

Yarn and pnpm work the same way (yarn add strapi-plugin-magic-sessionmanager, pnpm add strapi-plugin-magic-sessionmanager).


Screenshots

All screenshots use synthetic data: users *.example.test, IP addresses from the documentation range 203.0.113.0/24, Strapi 5.61. The full gallery on the project site also shows Analytics, dark mode, every settings tab, the untracked sign-in dialogs and more mobile views.

Session details
Sessions panel in the Content Manager
Homepage widget
Configuration
Untracked Strapi sign-ins (refresh mode)
Admin panel sessions

Strapi 5.62, synthetic admins *.example.test. The gallery also shows the sessions dialog, the sign-out confirmation, what the signed-out admin sees, dark mode and the phone layout.

Mobile (390 px)

Core concepts

Session. One sign-in of a user on one device, from sign-in until it ends. Every session has a session record with times, device, IP address and location.

A session is in one of three states:

State Meaning
Active Open and used within the inactivity timeout.
Idle Open, but not used for longer than the inactivity timeout. It ends on its next request or at the next idle check. A token refresh makes it active again.
Ended The session can no longer be used. The user has to sign in again on this device.

An ended session always shows its end reason:

End reason Stored value Meaning
Logged out logout The user signed out.
Timed out idle Not used for longer than the inactivity timeout.
Expired expired Reached the maximum session age.
Ended manually manual Ended from the Strapi admin, or by the user from another of their devices.
User blocked blocked Ended because the user account was blocked.
Reason not recorded (none) No end reason was stored, for example because the session ended in Strapi's own session store or was recorded by an older plugin version.

Three verbs, three meanings:

  • End a session: it stops working, the record stays in the history.
  • Delete record: the record is removed from history, statistics and exports. If the session is still open, it also ends. Its token stays revoked.
  • Block a user: the user cannot sign in, and all open sessions end. Unblock allows sign-in again but does not restore ended sessions.

Online describes users, never sessions: a user is online when at least one of their sessions is Active. The dashboard, the widget and the user panel all use this one rule, based on the configured inactivity timeout.


Screens

Where Name Answers
Main menu Session Manager (page title "Sessions") Which sessions exist, and which need action?
Dialog on the dashboard Session details What is this session, and why is it in this state?
Content Manager, User edit view Sessions panel What access does this user have, and how do I cut it off?
Strapi homepage Online users widget Who is online right now?
Session Manager › Admin panel Admin panel sessions Who is signed in to this admin panel, and how do I sign someone out?
Settings › Session Manager Configuration How should sessions and sign-ins behave?
Settings › Session Manager Analytics How are sessions used over time and by device?
Sessions dashboard
  • Header: title "Sessions", the links Analytics and Settings (opens Configuration), and Export (CSV or JSON of every session that matches the filter, up to 50,000 newest, with an "End reason" column and never any tokens).
  • How sessions work: a collapsed legend of the three states.
  • Four stat cards that set the status filter: Active ("{n} users online"), Idle, Ended ("{a} logged out · {b} timed out · {c} other reasons") and All.
  • Action bar: search by user, email, IP or device; Status filter (All sessions, Open, Active, Idle, Ended); an End reason filter when Ended is selected; Refresh. "Last updated" shows when the list was loaded; it also refreshes every 10 minutes.
  • Table: Status (badge and a second line, for example "Ended manually · {date}"), User, Device, IP address, Signed in, Last active and the row actions View details, End session (disabled on ended rows) and More actions › Delete record. Clicking a row opens the details.
  • Filters, search, page and page size are kept in the URL, so ?search=<email> is a shareable link.
  • Search, filters, sorting and paging run on the server, so the list, the counts and the page numbers cover every session, however many there are. Only the 25 to 100 rows on the screen are loaded.
  • In refresh mode, a notice above the cards counts untracked Strapi sign-ins: refresh tokens Strapi still accepts that have no session details from this plugin. They are not in the list and are not active or online sessions; each user's sessions panel lists them. The notice is neutral when all of them were created before this plugin started tracking, and a warning ("Possible tracking gap") when any was created afterwards. Why? opens a count-only summary; End these sessions ends them after a confirmation. See Untracked Strapi sessions.
  • Below the large breakpoint the IP address and Signed in columns are hidden; below the medium breakpoint the table becomes a card list.
Admin panel sessions

Open Session Manager and switch to Admin panel (the switch below the title; shown only to roles with "Read admin panel sessions"). The view lists Strapi admin accounts, not your app's users, and none of its numbers appear on the App users dashboard, the widget or Analytics.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm strapi-plugin-magic-sessionmanager

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229