Closed Bug 1525049 Opened 6 years ago Closed 5 years ago

Store session values in the database

Categories

(bugzilla.mozilla.org :: General, task)

Production
task
Not set
normal

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
Summary: Store large session values in the database → Store session values in the database
Blocks: 1524174

Maybe we don't store small values in the DB?

No longer blocks: 1524175
Type: enhancement → task

Looks like we don’t need this (at least for Bug 1524174).

No longer blocks: 1524174
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.