django create session variable within template file code example Example: django set session variable request.session['idempresa'] = idempresaValue