luci-base: fix sysauth cookie not removed on logout

Signed-off-by: Kyle Rogers <7157021+kyle30312@users.noreply.github.com>
This commit is contained in:
Kyle Rogers 2018-09-26 18:33:58 -04:00
parent c70c5cc3a1
commit c9e4085c64

View 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