-
Notifications
You must be signed in to change notification settings - Fork 6
Session handling
Sri Vishnu Totakura edited this page Apr 14, 2018
·
1 revision
Session related information is encapsulate in Alexa::Session
class.
An instance of this class is returned with Alexa::Request#session
.
The same instance is also available in the intent handlers as session
private method.
Session variables can be read or set in the intent handlers:
session.merge!(my_var: value)
# Accesssing session variable
session[:my_var]
Learn more about Alexa::Session
by reading its documentation