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: coolinterview.com | Asked In: Many Interviews |