django print request session data code example
Example: how to get data from django session
######### Store the data ############
request.session['idempresa'] = profile.idempresa
######## now use the data ################
if 'idempresa' in request.session:
idempresa = request.session['idempresa']