Replace changed by expires_at in session handling

This prepares using extended session lifetimes configurable per session
This commit is contained in:
Pablo Zmdl
2025-09-28 15:00:07 +02:00
committed by Pablo Zmdl
parent ea110e9b4b
commit 202daa6f97
15 changed files with 53 additions and 42 deletions

View File

@@ -37,12 +37,12 @@ CREATE TABLE users (
CREATE TABLE "session" (
sess_id varchar(128) DEFAULT '' PRIMARY KEY,
changed timestamp with time zone DEFAULT now() NOT NULL,
expires_at timestamp with time zone DEFAULT now() NOT NULL,
ip varchar(41) NOT NULL,
vars text NOT NULL
);
CREATE INDEX session_changed_idx ON session (changed);
CREATE INDEX session_expires_at_idx ON session (expires_at);
--
@@ -390,4 +390,4 @@ CREATE TABLE "system" (
value text
);
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2022100100');
INSERT INTO "system" (name, value) VALUES ('roundcube-version', '2025092300');