Serialization And Deserialization Of Session Data
I have stored session data in SQL server mode using asp.net.The data thus stored is serialized by asp.net.I am using a function to deserialize the data and return it in an object t
Solution 1:
You don't need to manually deserialize objects stored in ASP.NET session state. If you have session state configured like this:
<configuration><system.web><sessionStatemode="SQLServer"sqlConnectionString="..." /></system.web></configuration>ASP.NET will automaticaly serialize and deserialize it for you. So in order to retrieve the data just read it from the session object:
Session["MyKey"] = newMyClass();
var myData = (MyClass)Session["MyKey"];
Post a Comment for "Serialization And Deserialization Of Session Data"