Browse Source

luci-base: fix sysauth cookie not removed on logout

Signed-off-by: Kyle Rogers <7157021+kyle30312@users.noreply.github.com>
Kyle Rogers 5 years ago
parent
commit
c9e4085c64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/luci-base/luasrc/controller/admin/index.lua

+ 2 - 2
modules/luci-base/luasrc/controller/admin/index.lua

@@ -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