Hello everyone I just came across this forum on Google search, and thought of registering rightaway.
Can anyone here advice me on how to implement forms authentication for my website. It should be something like in this vbulletin software..if a user tries to access any page on my website without loggin in, he/she should be redirected back to the login page.
I have put in the following code in the web.config page
<authentication mode="Forms" >
<forms name="AuthCookie" loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name = "sandra" password="bullock"/>
</credentials>
</forms>
</authentication>
How do I go about doing things further from here? Is there a page attribute that I need to include in every page? or is there some code that I need to include on every page?
Thanks in advance!
Viking
Can anyone here advice me on how to implement forms authentication for my website. It should be something like in this vbulletin software..if a user tries to access any page on my website without loggin in, he/she should be redirected back to the login page.
I have put in the following code in the web.config page
<authentication mode="Forms" >
<forms name="AuthCookie" loginUrl="Login.aspx">
<credentials passwordFormat="Clear">
<user name = "sandra" password="bullock"/>
</credentials>
</forms>
</authentication>
How do I go about doing things further from here? Is there a page attribute that I need to include in every page? or is there some code that I need to include on every page?
Thanks in advance!
Viking
Last edited by a moderator: