django view set session id code example Example: django set session variable request.session['idempresa'] = idempresaValue