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
What are the best practices to follow to secure connection strings in an ASP.NET web application?
How asynchronous call can be implemented using delegates?
Which dll handles the request of .aspx page?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
What is bound controls
What is the advantage of mvc over asp.net? : Asp.Net MVC
What is server side session?
What is application in asp net?
How do we assign page-specific attributes?
What are the merits and demerits of viewstate?
How to prevent client side validation from the ASP.NET validation controls?
What is postback in asp net?
How can we create custom controls in asp net?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
Explain the advantages of passport authentication.