luci-base: fix sysauth cookie not removed on logout 2184/head
authorKyle Rogers <7157021+kyle30312@users.noreply.github.com>
Wed, 26 Sep 2018 22:33:58 +0000 (18:33 -0400)
committerKyle Rogers <7157021+kyle30312@users.noreply.github.com>
Thu, 27 Sep 2018 14:04:57 +0000 (10:04 -0400)
Signed-off-by: Kyle Rogers <7157021+kyle30312@users.noreply.github.com>
modules/luci-base/luasrc/controller/admin/index.lua

index 7e0a2074375cc05a5438df4a6686c99656313241..9a084d10e27f5e63b50d102b4590f81593ad8d9a 100644 (file)
@@ -94,8 +94,8 @@ function action_logout()
        if sid then
                utl.ubus("session", "destroy", { ubus_rpc_session = sid })
 
-               luci.http.header("Set-Cookie", "sysauth=%s; expires=%s; path=%s/" %{
-                       sid, 'Thu, 01 Jan 1970 01:00:00 GMT', dsp.build_url()
+               luci.http.header("Set-Cookie", "sysauth=%s; expires=%s; path=%s" %{
+                       '', 'Thu, 01 Jan 1970 01:00:00 GMT', dsp.build_url()
                })
        end