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 is difference between Server.Transfer and Response.Redirect in ASP.NET?
Is razor a programming language?
How can you enable impersonation in the web.config file?
How does session state work in asp.net?
How to use multiple scriptmanager controls in a web page?
We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?
What are the asp.net server side objects?
Is asp.net still used?
Why mvc is faster than asp.net? : Asp.Net MVC
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
Which protocol is used to call web service?
Explain http handlers? Where we can use the http handlers?
How you will manage the state of ASP.NET controls?
What are the page life cycle events?
Briefly describe the role of global.asax?