Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

accessing data on django sessionstore

>>> s.session_data
'KGRwMQpTJ19hdXRoX3VzZXJfaWQnCnAyCkkxCnMuMTExY2ZjODI2Yj...'
>>> s.get_decoded()
{'user_id': 42}
Source by django-book.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #accessing #data #django #sessionstore
ADD COMMENT
Topic
Name
6+3 =