Forms based authentication in asp.net

In this post, we will discuss 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 a 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 the 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 writing code in the Login button we have to use RedirectFromTheLoginPage.
RedirectFromTheLoginPage does two things:
– It will provide the requested page to the client.
– It will produce a security token in the form of cookies.
Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online 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 →