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

What are the best practices to follow to secure connection strings in an ASP.NET web application?

646


How asynchronous call can be implemented using delegates?

646


Which dll handles the request of .aspx page?

660


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?

654


What is bound controls

678






What is the advantage of mvc over asp.net? : Asp.Net MVC

589


What is server side session?

605


What is application in asp net?

576


How do we assign page-specific attributes?

706


What are the merits and demerits of viewstate?

661


How to prevent client side validation from the ASP.NET validation controls?

666


What is postback in asp net?

642


How can we create custom controls in asp net?

632


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

761


Explain the advantages of passport authentication.

598