From db002a20f1a2cd0c9b72546936ca5fae089b82c2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 4 May 2019 17:53:41 +0200 Subject: Fixed cookie clearing Co-authored-by: LarsVomMars --- src/main/kotlin/UserHandler.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/kotlin/UserHandler.kt b/src/main/kotlin/UserHandler.kt index 16a8e9c..3811fbe 100644 --- a/src/main/kotlin/UserHandler.kt +++ b/src/main/kotlin/UserHandler.kt @@ -65,7 +65,8 @@ class UserHandler { * Logs the user out of the system */ fun logout(ctx: Context) { - ctx.clearCookieStore() // TODO: Fix cookie clearing after logout + ctx.clearCookieStore() + ctx.removeCookie("javalin-cookie-store", "/") ctx.redirect("/") } -- cgit v1.2.3