[PR #4269] [MERGED] Add user max sessions options #9991

Closed
opened 2026-02-07 06:12:08 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4269
Author: @joshuaboniface
Created: 10/4/2020
Status: Merged
Merged: 10/5/2020
Merged by: @joshuaboniface

Base: masterHead: session-limit


📝 Commits (10+)

  • 5a7dda3 Add active session tracking
  • b9d79d7 Add DB migration for new MaxActiveSessions field
  • 975fca5 Fix syntax error
  • 2577595 Remove obsolete getter
  • a9e5f6e Remove nullable from MaxActiveSessions
  • b130af1 Remove variables from SecurityException
  • 6e1d1ee Make log entry informational
  • cd328a0 Remove default set for MaxActiveSessions
  • 725acb5 Add pragma warning disabled to migrations
  • d0ec687 Increase count check to 1

📊 Changes

7 files changed (+514 additions, -1 deletions)

View changed files

📝 Emby.Server.Implementations/Session/SessionManager.cs (+8 -0)
📝 Jellyfin.Data/Entities/User.cs (+5 -0)
Jellyfin.Server.Implementations/Migrations/20201004171403_AddMaxActiveSessions.Designer.cs (+464 -0)
Jellyfin.Server.Implementations/Migrations/20201004171403_AddMaxActiveSessions.cs (+27 -0)
📝 Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs (+4 -1)
📝 Jellyfin.Server.Implementations/Users/UserManager.cs (+2 -0)
📝 MediaBrowser.Model/Users/UserPolicy.cs (+4 -0)

📄 Description

Changes

Adds the ability to set a maximum number of active sessions per account, and limit logins based on this count.

Issues

Implements Fider #59


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/4269 **Author:** [@joshuaboniface](https://github.com/joshuaboniface) **Created:** 10/4/2020 **Status:** ✅ Merged **Merged:** 10/5/2020 **Merged by:** [@joshuaboniface](https://github.com/joshuaboniface) **Base:** `master` ← **Head:** `session-limit` --- ### 📝 Commits (10+) - [`5a7dda3`](https://github.com/jellyfin/jellyfin/commit/5a7dda337f4cdda0d0c61adef3d2b13772e708d0) Add active session tracking - [`b9d79d7`](https://github.com/jellyfin/jellyfin/commit/b9d79d7635aa39052244f356e699bc125c88bc34) Add DB migration for new MaxActiveSessions field - [`975fca5`](https://github.com/jellyfin/jellyfin/commit/975fca51583de23bafb6720104a2a6857ab29b18) Fix syntax error - [`2577595`](https://github.com/jellyfin/jellyfin/commit/2577595bac615fc74c8d4b21bd0ce925a1b21b7b) Remove obsolete getter - [`a9e5f6e`](https://github.com/jellyfin/jellyfin/commit/a9e5f6e770edec9c768bf9365fbb2dac26f0b7c1) Remove nullable from MaxActiveSessions - [`b130af1`](https://github.com/jellyfin/jellyfin/commit/b130af1b0c869fa6a35be4a53510e0f0fa4ad0d3) Remove variables from SecurityException - [`6e1d1ee`](https://github.com/jellyfin/jellyfin/commit/6e1d1eed23442976ac0d9b2a2af44b7a6804ea09) Make log entry informational - [`cd328a0`](https://github.com/jellyfin/jellyfin/commit/cd328a0be3a8a3e20c51eb999f1b858d5263bab1) Remove default set for MaxActiveSessions - [`725acb5`](https://github.com/jellyfin/jellyfin/commit/725acb528aab34df5cd5c6b6e552e5f5e54b7fea) Add pragma warning disabled to migrations - [`d0ec687`](https://github.com/jellyfin/jellyfin/commit/d0ec6872f3418a3bc6bacff6ba068526f45fc167) Increase count check to 1 ### 📊 Changes **7 files changed** (+514 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Session/SessionManager.cs` (+8 -0) 📝 `Jellyfin.Data/Entities/User.cs` (+5 -0) ➕ `Jellyfin.Server.Implementations/Migrations/20201004171403_AddMaxActiveSessions.Designer.cs` (+464 -0) ➕ `Jellyfin.Server.Implementations/Migrations/20201004171403_AddMaxActiveSessions.cs` (+27 -0) 📝 `Jellyfin.Server.Implementations/Migrations/JellyfinDbModelSnapshot.cs` (+4 -1) 📝 `Jellyfin.Server.Implementations/Users/UserManager.cs` (+2 -0) 📝 `MediaBrowser.Model/Users/UserPolicy.cs` (+4 -0) </details> ### 📄 Description **Changes** Adds the ability to set a maximum number of active sessions per account, and limit logins based on this count. **Issues** Implements Fider #59 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:12:08 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9991