Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
In SQLServer mode, session expiration is carried out by the SQL Agent using a registered job. Make sure your
Even those enableSessionState is marked as ReadOnly, but in InProc state, the user can still modify the
session. The only difference is that the session will not be locked during the request. This limitation is by-
design
Include a sql trusted connection, or put the connection string as encrypted data in the registry. Refer
• How To Use the ASP.NET Utility to Encrypt Credentials and Session State Connection Strings
Use HttpContext.Current.Session
VB.NET
HttpContext.Current.Session("Value1") = "1"
C#
HttpContext.Current.Session["Value1"] = "1";
• InProc Mode- objects stored in session state are actually live objects, and so you can store whatever
• State Server or SQL Server mode, objects in the session state will be serialized and deserialized
when a request is processed. So make sure your objects are serializable and their classes must be