Closed
Bug 1525049
Opened 6 years ago
Closed 6 years ago
Store session values in the database
Categories
(bugzilla.mozilla.org :: General, task)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dylan, Unassigned)
Details
We can't store things larger than 2kb in the session storage.
Here's how to fix this:
- create a
session
table- id bigint primary key
- json_value mediumtext not null
- In the Glue plugin, override
$app->sessions->serialize
and$app->sessions->deserialize
- serialize stores the value in the database and returns a json object representing the id.
- deserialize takes the id and does a lookup.
- garbage collection can be worried about in a separate bug
Reporter | ||
Updated•6 years ago
|
Summary: Store large session values in the database → Store session values in the database
Reporter | ||
Comment 1•6 years ago
|
||
Maybe we don't store small values in the DB?
Looks like we don’t need this (at least for Bug 1524174).
You need to log in
before you can comment on or make changes to this bug.
Description
•