You can use Forms Authentication , which should be fairly simple to implement and will not require a task to run (you need to run appcmd.exe),
Configure the application to use authentication in your web.config.
<authentication mode="Forms"> <forms name=".ASPXAUTH" loginUrl="/myadminlogin.aspx" protection="All" path="/" timeout="120" /> </authentication>
Define protected folders in the web.config file.
<location path="secure"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location>
In your login area, check the status and set the auth cookie:
'SET AUTH COOKIE FormsAuthentication.SetAuthCookie(sessionID, False) response.redirect(/secure/securearea.html)
This, unfortunately, is one page where you will need server-side code.
QFDev source share