Skip to content

Commit 156735a

Browse files
authored
Add usage of DefaultSerializer for session attributes
1 parent dd16873 commit 156735a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/en/ATTRIBUTES.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ Session attributes do not require the use of an external storage
4848
solution. They are not available for use when handling out-of-session
4949
requests. They are discarded once the skill session closes.
5050

51+
.. note::
52+
53+
Since session attributes are stored in the ``session`` property of
54+
Alexa's :py:class:`ask_sdk_model.request_envelope.RequestEnvelope`
55+
and :py:class:`ask_sdk_model.response_envelope.ResponseEnvelope`
56+
objects, only serializable types can be stored under them. The
57+
:py:class:`ask_sdk_core.serialize.DefaultSerializer` is used to
58+
serialize / deserialize the values.
59+
5160
Persistent Attributes
5261
~~~~~~~~~~~~~~~~~~~~~
5362

0 commit comments

Comments
 (0)