Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XxlSsoWebFilter logoutPageUrl 缺少当前页面地址,退出登录后重新登录无法跳转回来 #71

Open
han343626 opened this issue Aug 27, 2021 · 0 comments

Comments

@han343626
Copy link

`
// logout path check
if (logoutPath!=null
&& logoutPath.trim().length()>0
&& logoutPath.equals(servletPath)) {

        // remove cookie
        SsoWebLoginHelper.removeSessionIdByCookie(req, res);

        // redirect logout
        String link = req.getRequestURL().toString().replace(logoutPath,"");
        String logoutPageUrl = ssoServer.concat(Conf.SSO_LOGOUT) + "?" + Conf.REDIRECT_URL + "=" + link;
        res.sendRedirect(logoutPageUrl);

        return;
    }

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant