SurfStatsLive Automatic Login Sample

You can bypass the SurfStatsLive login screen by posting a form to a page called verifyUser.asp on the website that SurfStatsLive is running on. verifyUser.asp will do the necessary validation of the username, password and user type and log the user into SurfStatsLive and show the relevant user interface, based on the user type.

Three input fields must be present on the form performing the HTTP post: UserName, Password and selLoginType. selLoginType should be set to SurfStatsLiveUser, ProfileAdministrator or ServerAdministrator.

When clicking the text Log me in automatically, the following sample HTML code in a web page will post the necessary fields to verifyUser.asp and automatically log the user johnny, with password foo into the SurfStatsLive service running on a server called www.MySurfStatsLiveServer.com as a profile administrator.
........
........
<SCRIPT language=JavaScript>
function autoLogin()
{
document.myForm.submit();
}
</SCRIPT>
........
........
<a href="JavaScript:autoLogin()">Log me automatically in</a>
........
........
<form name=myForm method=post action="http://www.MySurfStatsLiveServer.com/login/verifyUser.asp">
<input type=hidden id=UserName name=UserName value=johnny></input>
<input type=hidden id=Password name=Password value=foo></input>
<input type=hidden id=selLoginType name=selLoginType value=ProfileAdministrator></input>
</form>
........
........

Please note: SurfStatsLive unfortunately does not support the administration of profile groups and profiles and server options from third-party web pages or script files.