set and get django session variables code example Example: django set session variable request.session['idempresa'] = idempresaValue