Can we implement Cookieless Forms Authentication?

 Posted by Ddd on 3/11/2011 | Category: ASP.NET Interview questions | Views: 3442 | Points: 40
Answer:

Yes, we can implement Cookieless Forms Authentication.
But, we have to use appropriate tags in the Web.Config file.

example:

<configuration>

<system.web>
<authentication mode="Forms">
<forms cookieless="AutoDetect'>
</authentication>
</system.web>
</configuration>


"AutoDetect": If Cookie header is there, the cookie is assigned. If Cookie header
is not there , ASP.NET will use Cookieless authentication.

"UseUri" attribute can also be used where an authentication cookie will never
be used.


| Alert Moderator 

Comments or Responses

Login to post response