diff --git a/core/admin/mailu/sso/views/base.py b/core/admin/mailu/sso/views/base.py index 67f2319a..aa0e9ea9 100644 --- a/core/admin/mailu/sso/views/base.py +++ b/core/admin/mailu/sso/views/base.py @@ -57,7 +57,10 @@ def login(): def logout(): flask_login.logout_user() flask.session.destroy() - return flask.redirect(flask.url_for('.login')) + response = flask.redirect(flask.url_for('.login')) + for cookie in ['roundcube_sessauth', 'roundcube_sessid', 'smsession']: + response.set_cookie(cookie, 'empty', expires=0) + return response @sso.route('/proxy', methods=['GET'])