DB-gestützte Sessions (opt-in) + 'überall abmelden'
- includes/DbSessionHandler.php (SessionHandlerInterface, fehlertolerant) - Auth: opt-in-Registrierung (Setting session_driver=db), activeSessionCount(), logoutOtherSessions() - Migration 0004 (sessions.user_id NULL) + database.sql - Settings-Toggle in integrations.php; 'überall abmelden' in security.php
This commit is contained in:
parent
ebfa27d5c3
commit
1a51721477
6 changed files with 144 additions and 2 deletions
5
updater/migrations/0004_db_sessions.sql
Normal file
5
updater/migrations/0004_db_sessions.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-- Updater-Migration: DB-gestützte Sessions zulassen.
|
||||
-- user_id muss NULL erlauben (anonyme Sessions vor dem Login).
|
||||
-- Idempotent genug: bei bereits NULL-barer Spalte ist das ein No-Op.
|
||||
|
||||
ALTER TABLE `sessions` MODIFY `user_id` INT NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue