how to set a value in django session code example Example: django set session variable request.session['idempresa'] = idempresaValue