MAC Cookie
MAC cookie is a new hotspot feature, designed to improve accessibility for smartphones, laptops and other mobile devices.
When MAC cookie feature is enabled (login-by=mac-cookie, add-mac-cookie=yes set in user profile), following actions are taken:
first successful login. Mac cookie keeps record of username and password for the MAC address if there is only one host with such MAC. Cookie timeout is set to value equal to mac-cookie-timeout.
new host appears. Hotspot checks if there is a mac cookie record for the MAC address and logs in host using recorded username and password. If there is more than one host with the same MAC address, user will not be logged in and MAC cookie record for this address will be deleted.
When user logs out mac cookie is removed in following cases:
user-request – user clicked on logout button.
admin-reset – disconnected from radius server or user is removed from hotspot active menu
nas-request – traffic limit reached
session-timeout