how python django session works code example Example: django set session variable request.session['idempresa'] = idempresaValue