hell friends .
How to Check that which types of data is stored in our Session object
Suppose
we have Session["test"]
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pranay RanaRank #735 · 3.2K reputationPosted Apr 22, 2015, 10:56 PM EDT
Object.GetType() to get type Example : Object obj = Session["test"]; Console.Writeln(obj.GetType());Lalit RaghavRank #1,306 · 1.3K reputationPosted Apr 23, 2015, 2:34 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 23, 2015, 4:19 AM EDT
Session is object having key value pairs on server and this key value pair is type of string - object
Hence Session["Key"] is always object type.
hope this will help you.