Forms based authentication in asp.net

InfoPath alternatives for form designing SharePoint
In this post we will discuss ablout forms based authentication in asp.net. Also you can check my previous articles on Cookieless session in Asp.NetCaching in Asp.Net and Method Overloading in C#.Net.
– When the client is authenticated based on custom page by verifying credentials with database server then it is called as forms based authentication.
– The security token will be given to the client as an identity of authenticated client.
Change in web.config for modification:
 <authentication mode=”Forms”>
      <forms name=”f1″ loginUrl=”login.aspx”>
      </forms>
    </authentication>
    <authorization>
      <deny users=”?”/>
    </authorization>
Here the name attribute will specify cookie name for maintaining security token.
By default it will be .ASPXAUTH
Here while writting code in the Login button we have to use RedirectFromTheLoginPage.
RedirectFromTheLoginPage does two things:
– It will provide requested page to the client.
– It will produce security token in the form of cookies.

Similar SharePoint 2013 Tutorials


About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply