Using IDFG Accounts with Classic ASP

Login Control

Live Demo
register login
ASP Code
<div id="ifwis-accountStatus">
<% if (Request.ServerVariables("REMOTE_USER") <> "") then %>
  <span id="ifwis-accountUsername"><a href="https://fishandgame.idaho.gov/ifwis/accounts/profile" title="Edit my Profile"><%= Request.ServerVariables("REMOTE_USER") %></a></span>
  <span id="ifwis-accountLogout"><a href="https://fishandgame.idaho.gov/ifwis/accounts/user/logout?returnUrl=<% = Request.ServerVariables("URL")%>" title="Logout of Fish and Game">logout</a></span>
<% else %> 
  <span id="ifwis-accountRegister"><a href="https://fishandgame.idaho.gov/ifwis/accounts/user/register?returnUrl=<% = Request.ServerVariables("URL")%>" title="Create a Fish and Game Account">register</a></span>
  <span id="ifwis-accountLogin"><a href="https://fishandgame.idaho.gov/ifwis/accounts/user/login?returnUrl=<% = Request.ServerVariables("URL")%>" title="Sign In">login</a></span>
<% end if %>
</div>
Web.config Settings
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <modules>
      <remove name="FormsAuthenticationModule" />
      <add name="FormsAuthenticationModule" type="System.Web.Security.FormsAuthenticationModule" />
    </modules>
  </system.webServer>
</configuration>