How can I know if a user is connected to my HotSpot Wi-Fi?

Hi,

I have an external login page and other pages in my portal that works when the user connects to my HotSpot wi-fi.

I want to design a page that shows a message when a user is not connected to my wi-if. For instance:

To view this page, please connect to "> MyHotSpot> " wi-fi first.

How can I know if a user is connected to my HotSpot Wi-Fi? (Using JavaScript or PHP API (MikroTik commands))

Thank you in Advance.

You can detect session parameters from the redirect page on MT hotspot.
You have several variables that MT sends in session, that you can detect from PHP. In example - you can check if there is a value for variable “logged-in”. Of cource you have to send it from MT to external PHP server.

PS. Remeber that if you like my answer, you can rise my Karma :wink: