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())
时间: 2024-10-11 00:46:34
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())