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