I have the following settings in my web.config file. It basically restricts access to a page if the user is not logged in. If I don’t want to use the asp login controls or implement a membership provider, how can I ‘tell’ asp that the loginregister.aspx page has authorized the request if I want to implement my own login system?
Thanks.
<authentication mode="Forms">
<forms loginUrl="~/loginregister.aspx"
name=".ASPXFORMSAUTH" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
<location path="~/secretpage.aspx" allowOverride="true">
<system.web>
<compilation debug="true" />
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
After you validate your user, set a ticket….
using this helper class…
If using a login control, do it in Authenticated event handler.