Answer Posted / chandra prakash
You can set the cookieless setting to one of the values defined by the HttpCookieMode enumeration,
as described
1)UseCookies - Cookies are always used, even if the browser or device doesn’t support cookies or they are disabled. This is the default. If the device does not support cookies, session information will be lost over subsequent requests,
because each request will get a new ID.
2)UseUri - Cookies are never used, regardless of the capabilities of the browser or device. Instead, the session ID is stored in the URL.
3)UseDeviceProfile- ASP.NET chooses whether to use cookieless sessions by examining the BrowserCapabilities object. The drawback is that this object indicates what
the device should support—it doesn’t take into account that the user may have disabled cookies in a browser that supports them.
4)AutoDetect- ASP.NET attempts to determine whether the browser supports cookies by attempting to set and retrieve a cookie (a technique commonly used on the Web). This technique can correctly determine whether a browser supports
cookies but has them disabled, in which case cookieless mode is used instead.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Explain the boxing and unboxing concept in .net?
What are the types of caching in asp.net?
What events will occur when a page is loaded?
In which event are the controls fully loaded?
What is a ashx file?
What is an asp.net validator? And, mention its types.
What is virtual directory in asp.net?
Define repository pattern in asp.net mvc? : asp.net mvc
What is break mode?
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?
Does google crawl redirects?
Where sessions are stored in asp.net?
Why is asp.net so popular?
1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????
Explain Features in ASP.NET