how to decode the data in session:

python manage.py shell:

from django.contrib.sessions.models import Session
#...
sess = Session.objects.all()
for s in sess:   print(s.session_data)   print(s.get_decoded())
posted on 2016-01-03 17:50  学思罔殆  阅读(156)  评论(0编辑  收藏  举报