I try to set the <sessionstate />
in my web.config but I don't know what are they.
I would like to know about ASP.Net <SessionState cookieless="" />
.
<sessionState cookieless="*****">
Let me know with short note.
Cookies provide a means in Web applications to store user-specific information. For example, when a user visits your site, you can use cookies to store user preferences or other information. When the user visits your Web site another time, the application can retrieve the information it stored earlier.
By default, the SessionID value is stored in a non-expiring session cookie in the browser. If you specify cookieless="true" then: ASP.NET maintains cookieless session state by automatically inserting a unique session ID into the page's URL.
Each time that ASP receives a request for a page, it checks the HTTP request header for a SessionID cookie. After storing the SessionID cookie in the user's browser, ASP reuses the same cookie to track the session, even if the user requests another . asp file, or requests an .
Specifies how cookies are used for a Web application.
The cookieless attribute can be one of the following possible values. The default is the UseCookies value.
Note When you configure an AJAX-enabled ASP.NET Web site, use only the default value of 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 persist user data; otherwise, an 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 feature.
UseCookies Cookies persist user data, regardless of whether the browser or device supports cookies.
UseDeviceProfile ASP.NET determines whether to use cookies based on the HttpBrowserCapabilities setting. If the HttpBrowserCapabilities setting indicates that the browser or device supports cookies, cookies are used; otherwise, an identifier is used in the query string.
UseUri The calling feature uses the query string to store an identifier, regardless of whether the browser or device supports cookies.
have also a look at http://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With