Hotspot logout erase-cookie bug on 6.49.6

From this link http://forum.mikrotik.com/t/user-click-logout-but-cookies-stay-active/31908/1

They use

open('$(link-logout)?erase-cookie=1', 'hotspot_logout', ...