Page 1 of 1
"login" and "logout" urls
Posted: Sun Jul 24, 2005 7:08 am
by infomate
This maybe my second post, I cant find my previous post so forgive me for double posting.
Can we make "login" and "logout" legitimate urls so that hotspot users can just type "
http://login" and "
http://logout" on a blank address space instead of "
http://10.5.50.5.1/login.html" and "
http://10.5.50.5.1/logout.html" respectivelly.
Thanks .
Robert S.
Posted: Thu Jul 28, 2005 1:19 pm
by thpet
You can make 'login' a url. Just add login as an a-record in your DNS-server.
ex: value: login ip:10.50.5.1
The hotpspot will redirect url-request to login page automaticly.
You could do the same with logout, but you would have to make this a-record point to a different IP on another webserver with a webpage redirecting back to "
http://10.50.5.1/logout.html" on the Mikrotik Hotspot server.
Posted: Thu Jul 28, 2005 2:30 pm
by Roman
you won't need second because if you're already logged in router will give you a page with your session time and "log off" button..
so logout can point to the same ip
Posted: Thu Jul 28, 2005 4:23 pm
by infomate
Thanks guys, I will try to test it and will give feedback in a few days
Robert S.
Posted: Sat Jul 30, 2005 5:27 pm
by infomate
well, I have tried it but didnt work. when you type in logout on the address bar it displays the status.html instead of the logout.html
Anybody tried it yet?
Posted: Mon Aug 01, 2005 8:07 pm
by lastguru
that is only a small problem since you may edit the status page that way so it would instantly redirect the browser to the logout page.
Posted: Tue Aug 02, 2005 2:28 pm
by normis
It is better to modify (create) rstatus.html - then status page will still be
available.
Posted: Wed Aug 03, 2005 5:33 am
by infomate
hmmmmm. nice idea, let me try that!
thanks guys!
Robert S.