How to authenticate users using Web.Config ?

Answer Posted / chinnu

in web.config file we can specify the authentication mode

<authentication mode="windows/forms">

for form autentication we can wirte like this
<authentication mode="forms">
<form name="a.aspx" loginurl="login.aspx"
time out="30" protection ="all">

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between client-side and server-side validations in webpages?

561


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

619


Do cookies store passwords?

500


Explain how can we inherit a static variable?

520


How do you declare static variable? What is its lifetime?

507






In which situation can you not use a viewstate?

530


What is cross page posting? How is it done?

551


What is the difference between Classic ASP and ASP.Net?

526


What is request and response in asp.net?

507


What role “#&&” plays in a querysting?

545


Are there resources online with tips on asp to asp.net conversions?

542


What is a page life cycle?

567


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

616


What is the significance of finalize method in .net?

550


Please briefly explain the usage of global.asax?

532