How do i force forms authentication
Posted on 2011-10-05
My web app is built in ASP .NET 3.5 [C#]. I want to force users to authenticate using forms authentication. When a user initially comes to any number of pages within a subset of pages within my site, let's say 5 pages total, i want then to have to authenticate. But only once, for any page within that subset of five pages. So that when once they authenticate once, then are free to go to any page in the site, including the other 4 pages without having to authenticate again. How do I achieve this. I'm somewhat familiar with how this is supposed to work, but the details of what i need to do / put in place / configure are escaping me right now. I need to know what my web.config should look like; what code i need to right for my login.aspx page and any other minimum coding, or settings that i will need in place to accomplish this. Any help would be appreciated. I've looked into links / articles but they seem to be more confusing than anything, i may need more of a step by step approach to this thing...