How to access FormsAuthentication section from Code behind in ASP.NET?

Posted by Raja under ASP.NET category on | Views : 4440
To access the properties and modify the properties of FormsAuthentication from code behind, use following code snippet.

// Get the Web application configuration.
System.Configuration.Configuration configuration =

// Get the external Authentication section.
AuthenticationSection authenticationSection =

// Get the external Forms section .
FormsAuthenticationConfiguration formsAuthentication =

Comments or Responses

Login to post response