Mikrotik Hotspot Cookie Login NOT WORKING

Hello,

I have the latest version of MTOS. I have setup a hotspot with the wizzard and for some reason the cookie login is not working… I have the routerboard 450g also I bought a PC to see if the problem was the 450g and I get the same problem… Now I have been using MT for a long time and never had any problems with this… I am also thinking of going back to an old version to test this but cant find my old versions…

If anyone has a hotspot working correctly and using cookies to login please send me a backup of your config to test out… I realy dont know what is going on.. Also i see on the logs that users get a different ip before they login and than it changes the ip to another ip address once they login… Is this right, I remember in the old versions of hotspot we had to create two networks, one for the hotspot users not logged in and then for the once that logged in.

thanks,

Daniel

uh?¿!

by default, login by cookie is activated and I never had problems with that. Try to download an older version of routeros from mikrotik site and test it..

The different IPs could be “virtual IPs”. If you have a pool IP in your hotspot/server profile, it’s possible that you get into the network with a static IP different to hotspot network and then the hotspot will make the translation.. perhaps this is giving problems with cookie login.

Try to: Set none in hotspot/server profile/pool
set all costumers to get IP from the mikrotik dhcp server.


I hope this fix your problem.

My experience determined the cookie login depends on the correct time entered in the router. The cookie expires after a few days, and if the cookie expired in January of 1970, it won’t be used by most browsers.

LOL.

very useful post SurferTim.

Danny, do you have the correct date time?

You can try to use NTP:

/system ntp client
set enabled=yes mode=unicast primary-ntp=69.25.96.14 secondary-ntp=\
    204.152.184.72

You can’t imagine how I felt after a day of tracking that down! :laughing:

May I suggest to the Mikrotik crew to add “requires NTP client” to the docs for the hotspot login-by=cookie in the wiki.

I know this is an old post, but just wanted to lay down an important note, you should always have your time correct on your network. One of the #1 things to ensure everything works right. Also good to get your timezones right too. Alot of functions in a network require good time keeping.

In saying that.. My cookies are also not working, but I have my time correct. Running 5.16 on a RB450G. Cookie is in the cookie list, but when client connects cookie doesn’t get eaten. Same device, same user, same hotspot..

Any thoughts? :slight_smile: