Remove webmail cookies on logout.

main
Alexander Graf 2 years ago
parent 600e0c2203
commit ab5caac6f7
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629

@ -57,7 +57,10 @@ def login():
def logout(): def logout():
flask_login.logout_user() flask_login.logout_user()
flask.session.destroy() 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']) @sso.route('/proxy', methods=['GET'])

Loading…
Cancel
Save