琪琪 发表于 2023-11-16 09:34:39

用门户做的首页,点击退出登录,默认首页并没有退出

使用门户的首页,写了退出登录的代码,点击退出后,门户首页正常退出了,打开的默认首页刷新,并不能退出。session 没有清理掉。返回到门户首页界面,重新刷新在不操作登录的情况下就直接进入首页界面了。

论坛管理员 发表于 2023-11-17 10:13:02


首先启用这个安全注销,然后退出时调用安全注销的接口

var action = this.Actions.load("x_organization_assemble_authentication");
action.AuthenticationAction.safeLogout(
function( json ){
    layout.isLogout = true;
    window.location.reload();
}.bind(this)
);



琪琪 发表于 2023-11-21 08:53:23

感谢:handshake

论坛管理员 发表于 2023-11-21 09:26:49

:handshake
页: [1]
查看完整版本: 用门户做的首页,点击退出登录,默认首页并没有退出