Close browser then disconnect user from hotspot.

Dear All Guy!!!


I want to close browser then must disconnect user from hotspot. Have anybody known about this? please help!!!

Thanks..

Check what value you have set for idle-timeout under /ip hotspot user profile. After this amount of time, the authenticated user is automatically logged out after no network traffic, so there is no need for user to log out with any browser function.

it good, do you have script or any idea about this? I want to disconnect when user close his/her browser.

Try reading the manual here http://wiki.mikrotik.com/wiki/Manual:IP/Hotspot/User

Аlso should be stopped all programs with use Internet too

So how do you propose the router magically gets control over other computers? That is - thankfully - impossible.

That will not help sort what the first guy asked… idle timeout is not what we want… as they said we need another option as stated (browser closing).

I hope someone will help us with way out.

/ip hotspot profile
set default http-cookie-lifetime=1m



/ip hotspot
add address-pool=HS-POOL idle-timeout=1m ....

but user will not log out until he/she stop make traffic for 1 minute
all programs such skype msn and torrent etc. should be stopped

to test it use torch tool

Thanks, we will test the code and get back to you with update.