How does ASP.Net cookieless work?

I am trying to install <sessionstate /> in my web.config, but I do not know what it is. I would like to learn about ASP.Net <SessionState cookieless="" /> .

 <sessionState cookieless="*****"> 
  • AutoDetect
  • Usecookies
  • UseDeviceProfile
  • UseUri
  • True
  • False

Let me know a short note.

+6
web-config session-state cookieless
source share
2 answers

Determines how cookies are used for the web application.

The cookieless attribute can be one of the following possible values. The default value is UseCookies.

Note. When setting up an ASP.NET website with AJAX support, use only the default value for UseCookies for the cookieless attribute. settings that use cookies encoded in the URL are not supported by the ASP.NET AJAX client script libraries.

Value Description

AutoDetect ASP.NET determines whether the requesting browser or device supports cookies. If the requesting browser or device supports cookies, AutoDetect uses cookies to store user data; otherwise, the identifier is used in the query string. If the browser or device supports cookies, but cookies are currently disabled, cookies are still used by the requesting function.

UseCookies Cookies store user data regardless of whether the browser or device supports cookies.

UseDeviceProfile . ASP.NET determines whether to use cookies based on the HttpBrowserCapabilities parameter. If the HttpBrowserCapabilities that the browser or device supports cookies, cookies are used; otherwise, the identifier is used in the query string.

UseUri The calling function uses the query string to store the identifier, whether the browser or device supports cookies.

also see http://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx

+4
source share

Note. When setting up an ASP.NET website with AJAX support, use only the default UseCookies value for the cookieless attribute. Parameters that use cookies encoded in the URL are not supported by script libraries for ASP.NET AJAX clients.

Well, I use ASP.Net Ajax in combination with <sessionState cookieless="true"> and have never experienced any problems ... I use Updatepanel as well as ASP Accordion on different pages.

0
source share

All Articles