When using Sql Server to store and manage the SessionState, is the session data stored in the database using encryption?
When I look at the data in the ASPNet database, the data in the “SessionItemLong” in the ASPStateTempSessions columns appears to be hexadecimal data. Is this data being encrypted before being stored in the database? And if so, where is the key that is being used to encrypt the data and what algorithm is being used to encrypt the data?
Also, the Session state stores the object using serialization. Which serialization is used? (binary or XML)
There are no encryption there. The data is stored using binary serialization (it’s much more faster than xml one). For details look at the SessionStateUtility class (you can browse it using free Reflector). This is the code which is used for serialization: