注销控制不起作用 [英] Logout control not working

查看:21
本文介绍了注销控制不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序的主布局中有登录/注销链接,按照 David Leedy 在此视频中描述的方式:http://notesin9.com/index.php/2012/03/09/notesin9-049-xpages-login-and-logout/

I have login/logout links in the main layout of my application, in the manner described by David Leedy in this video: http://notesin9.com/index.php/2012/03/09/notesin9-049-xpages-login-and-logout/

一切正常,除了注销链接.链接代码为:

Everything works fine, except for the logout link. The code for the link is:

facesContext.getExternalContext().getRequest().getContextPath() + "?Logout&redirectTo=" + facesContext.getExternalContext().getRequest().getContextPath()

点击后,我退出并返回主页,这很好.但是,如果我刷新或单击另一个页面,我会立即重新登录而没有密码提示.这是因为服务器上保存了一个未被清除的会话吗?如何更改此设置,以便在注销后,有人在登录之前必须再次完成完整的登录过程?

When it is clicked, then I get logged out and returned to the homepage, which is fine. But then if I refresh, or click onto another page, I am immediately logged back in without a password prompt. Is this because there is a session saved on the server which is not being cleared? How can I change this so that after logging out, someone would have to go through the full login process again before being logged in?

推荐答案

这取决于您的服务器是设置为使用基本身份验证还是基于会话的身份验证.基本身份验证没有注销机制,当您关闭浏览器时,您将被注销.

It depends if your server is setup to use basic or session based authentication. There is no logout mechanism for basic authentication, you are logged out when you close the browser.

以上代码仅适用于通过 domino admin 在您的 domino 服务器上配置的会话.

The above code will only work for session based which is configured on your domino server through domino admin.

这里有一些说明:

here are some instructions: http://www-12.lotus.com/ldd/doc/domino_notes/7.0/help7_admin.nsf/b3266a3c17f9bb7085256b870069c0a9/1e4058257e426e5e8525706f0065d97a?OpenDocument

这篇关于注销控制不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆