Hello I am trying to figure out how to chane the page the user see after authenticating. I put the follwoing code in the status html but since the logout windows refreshes every minute it relaunches the www.example.com page as well. How can I have it so after authenticating the user will see the logout window but still also be sent to the www.example.com page as well
Thank you,
Which page do you want to change after login? The status page or the main browser page?
There are detailed instructions in the manual about 3/4 of the way down this page:
http://www.mikrotik.com/testdocs/ros/2.9/ip/hotspot.php
I am trying to change the main browser page after login. I have added the following in red to login.html but no luck in bring the page up http://www.test.com
Hotspot > example WiFi Network
\
\
You can’t just put that anywhere. Normally you change the input that is already there. It needs to be inside the “sendin” form tags.
<form name="sendin" action="$(link-login-only)" method="post">
<input type="hidden" name="dst" value="http://www.test.com">
</form>
Before the edit, that would have been
value=“$(link-orig)”
Unfortuantly it is not working for me. Could it be becasue i am using an eternal portal page to do the login? let me try to re expalin maybe I missed an important peice of info.
In the login.html we have it redirct to a portal page on our radius server.
After login it brings up the logout screen. I would like it to bring up both the logout screen and http://www.test.com..
I was orginally told to put it in the status.html
It may be that they logged in by cookie, and don’t realize they are logged in. Check a couple places:
/log
/ip hotspot active
If you did not change the default “login-by” settings for the hotspot, users will login by cookie. You will see how they logged in (http-chap or cookie) in the log. You can see if they are actually logged in by checking “/ip hotspot active”.
I would drop the status page script. I don’t think it will ever work like you expect.