I need to know How basic types Int, enum, string get stored in session variable. Are they get serialized first before storing.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That depends entirely on how session state is configured.
If you just store session state in-memory, serialization is not needed. The variables are stored straight into a dictionary object.
If you store session state on a session state server or in the database, then the variables are indeed serialized and deserialized all the time.
You can find out more at http://msdn.microsoft.com/en-us/magazine/cc163730.aspx.