How do you turn off cookies in your site?

 Posted by Akiii on 5/25/2011 | Category: ASP.NET Interview questions | Views: 6011 | Points: 40

Use the Cookie.Discard Property which gets or sets the Discard flag set by server. When true this property instructs the client application not to save the cookie on the users hard disk when a session ends.


It can be turned off by mentioning cookie state= false in Web.Config file.This will turn off session cookie.

Thanks and Regards

Source: | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response