How do you turn off cookies in your site?

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

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.

OR

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



Thanks and Regards
Akiii


Source: coolinterview.com | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response