User click logout but cookies stay active

If a user click the logout button on http://-------/status.html how should I make the cookies automatically be deleted?

thanks,

it’s already possible to configure this. edit the html page where your logout button resides, so that the logout link includes the parameter “erase-cookie=1”

from the manual:

change

open(‘$(link-logout)’, ‘hotspot_logout’, …

to this:

open(‘$(link-logout)?erase-cookie=1’, ‘hotspot_logout’, …

If you are not using cookies for login, you can also disable the cookie login.
/ip hotspot profile
set default login-by=http-chap