Bug 1525049 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

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
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
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](https://github.com/mozilla-bteam/bmo/blob/master/Bugzilla/App/Plugin/Glue.pm) 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

Back to Bug 1525049 Comment 0