I've created a custom Login.aspx page which will check ID and password in a SQL database. I've been trying to setup my application to do the following:
If a user goes directly to another page, other than login.aspx, it will automatically direct the user back to login.aspx to properly login. I've mostly tried <authentication mode="Forms">, but am having trouble. Here is what I have in web.config:
I've tried a few techniques from various posts, but it never seems to work.
When it comes to assigning <forms name="Form1" & the loginUrl="login.aspx" >, what exactly does the forms name need to be? Is this even the right approach?
Joe
If a user goes directly to another page, other than login.aspx, it will automatically direct the user back to login.aspx to properly login. I've mostly tried <authentication mode="Forms">, but am having trouble. Here is what I have in web.config:
Code:
<authentication mode="Forms">
<forms name="Form1" loginUrl="login.aspx" >
</forms>
</authentication>
<authorization>
<allow users="?"
</authorization>
I've tried a few techniques from various posts, but it never seems to work.
When it comes to assigning <forms name="Form1" & the loginUrl="login.aspx" >, what exactly does the forms name need to be? Is this even the right approach?
Joe