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