where is django session store data code example
Example 1: django set session variable
request.session['idempresa'] = idempresaValue
Example 2: accessing data on django sessionstore
>>> from django.contrib.sessions.models import Session
>>> s = Session.objects.get(pk='2b1189a188b44ad18c35e113ac6ceead')
>>> s.expire_date
datetime.datetime(2005, 8, 20, 13, 35, 12)