Skip to content

"Error: failed to deserialize user out of session" unwanted on production #6

@hunterloftis

Description

@hunterloftis

This is subjective but I believe a deserialization error from a bad session cookie/reset redis database/other regular production hiccup should not totally stonewall the unfortunate user with the problem. As things stand now, as soon as you get a deserialization error you're essentially blacklisted, and the error will be useless information to a typical user.

More desirable production behavior includes any of:

  1. Remove the session information and treat the user as a 'fresh' user who has not logged in
  2. Allow for a configuration option that can override this behavior (eg, gracefulFailure: true)
  3. Provide an override hook for handling failed deserializations, so the developer can at least override

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions