What is cookie less session? How it works?

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


Please Help Members By Posting Answers For Below Questions

How ASP and ASP.NET page works? Explain about asp.net page life cycle?

581


hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

1263


Define resource files.

561


What is the biggest disadvantage of “Other Return Types” in Web API?

929


What is a session government?

497






Define web.config in .net?

637


When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

589


How should I destroy my objects in asp.net?

597


What are the three parts of an http response?

527


What is difference between View State and Hidden Field in ASP.NET?

659


How to disable disable browser's Back button in asp.net (JavaScript)?

562


Can one dll file contains the compiled code of more than one .net language?

530


What is server infrastructure & server components?

780


Differentiate between early binding and late binding.

573


Explain the difference between Web Garden and Web Farm?

547