From 68499e31719b48940f4ecf66b179ca1c8a4ea6df Mon Sep 17 00:00:00 2001 From: Kload Date: Thu, 17 Apr 2014 10:46:01 +0200 Subject: [PATCH] [fix] Logout --- access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.lua b/access.lua index 5c8ccdb..4a0942b 100644 --- a/access.lua +++ b/access.lua @@ -553,7 +553,7 @@ function do_logout() local args = ngx.req.get_uri_args() if is_logged_in() then cache:delete("session_"..ngx.var.cookie_SSOwAuthUser) - cache:delete(user.."-uid") -- Ugly trick to reload cache + cache:delete(ngx.var.cookie_SSOwAuthUser.."-uid") -- Ugly trick to reload cache flash("info", "Logged out") return redirect(portal_url) end