put a session variable in context django code example Example: django set session variable request.session['idempresa'] = idempresaValue