forked from orbit-oss/flask
Added uuid support for new session serialization and documented it
This commit is contained in:
parent
38eed272f9
commit
18673ba370
3 changed files with 21 additions and 0 deletions
12
docs/api.rst
12
docs/api.rst
|
|
@ -224,6 +224,18 @@ implementation that Flask is using.
|
|||
.. autoclass:: SessionMixin
|
||||
:members:
|
||||
|
||||
.. autodata:: session_json_serializer
|
||||
|
||||
This object provides dumping and loading methods similar to simplejson
|
||||
but it also tags certain builtin Python objects that commonly appear in
|
||||
sessions. Currently the following extended values are supported in
|
||||
the JSON it dumps:
|
||||
|
||||
- :class:`~markupsafe.Markup` objects
|
||||
- :class:`~uuid.UUID` objects
|
||||
- :class:`~datetime.datetime` objects
|
||||
- :class:`tuple`\s
|
||||
|
||||
.. admonition:: Notice
|
||||
|
||||
The ``PERMANENT_SESSION_LIFETIME`` config key can also be an integer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue