我实现了一个从网页注销用户的 LogOut 按钮。服务器是 Oracle HTTP 服务器。
单击 LogOut 时,它会执行以下过程
PROCEDURE log_me_off IS
BEGIN
-- Open the HTTP header
owa_util.mime_header('text/html', FALSE, NULL);
-- Send a cookie to logout
owa_cookie.send('WDB_GATEWAY_LOGOUT', 'YES', path=>'/');
-- Close the HTTP header
owa_util.http_header_close;
-- Generate the page
htp.p('
<head>
<script type = "text/javascript" >
history.pushState(null, null, ''xna_hpms_ui.log_me_off'');
window.addEventListener(''popstate'', function(event) {
history.pushState(null, null, ''xna_hpms_ui.log_me_off'');
});
</script>
</head>
You have been logged off from the WEBSITE');
htp.anchor( 'http://www.google.com', 'click here to login a');
htp.p('<BR>bye');
END;
END;
/
我提到的文件:https ://docs.oracle.com/cd/B13789_01/server.101/b12303/secure.htm
问题:
在 Chrome 中,当我单击注销按钮时,它会注销用户,然后当用户尝试刷新或尝试在新选项卡中打开网页时,如果用户单击取消并刷新选项卡,则会出现提示询问登录凭据他会自动登录。虽然这种行为不在 IE 中。
当有许多选项卡打开并且用户单击“注销”按钮时,他会从当前页面注销,而当导航到其他选项卡时,如果他单击任何位置,他会再次通过网页要求输入凭据,而如果他单击“取消”并刷新他再次登录的页面在不输入凭据的情况下打开。
请帮助