SessionΒΆ
pytonik
provide sessions to store data and recall them when needed. Session has property to set
, get
and destroy data with in pytonik web framework.
Import Module
from pytonik.Session import Session
Attribute of Request are :-
- set
- get
- destroy
set initiate data storage over http with keyword argument, set(key, value="", duration, url, path)
Session.set('key', 'value', 'duration')
get retrieve data storage http with keyword argument.
Session.get('key')
destroy all session over http
Session.destroy()
destroy session associated with a keyword
Session.destroy('name')