Home > DeveloperSection > Interviews > Where does session stored if cookie is disabled on client’s machine?

Posted on    February-01-2015 10:38 PM

 C# ASP.Net  Session  Session Scope 
 1 Answer(s)
  1087  View(s)
Rate this:

Ankita Pandey
Ankita Pandey

Total Post:6

Posted on    February-01-2015 11:38 PM

If you want to disable the use of cookies in your ASP.NET application and still make use of session state, you can configure your application to store the session identifier in the URL instead of a cookie by setting the cookieless attribute of the sessionState configuration element to true, or to UseUri, in the Web.config file for your application.
The following code example shows a Web.config file that configures session state to use cookieless session identifiers.

      timeout="30" />

Don't want to miss updates? Please click the below button!

Follow MindStick