Session is value type or reference type? [Resolved]

Posted by Allemahesh under ASP.NET on 8/19/2013 | Points: 10 | Views : 4899 | Status : [Member] [MVP] | Replies : 2
Can any one tell me where Session is value type or reference type?
If it is reference type, then why I can not create an object type of session?
Like:- Session obj = new Session();




Responses

Posted by: Satyapriyanayak on: 8/19/2013 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
http://www.codeproject.com/Questions/243821/Asp-net-Session-assign-value-by-ref-or-by-val

If this post helps you mark it as answer
Thanks

Allemahesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ssj_Kumar on: 8/19/2013 [Member] Starter | Points: 50

Up
0
Down

Resolved
We access Session data through a property named Session. This Session property is an object of HttpSessionState class in System.Web.SessionState namespace.
As is an object of HttpSessionState it will be reference type

Regards,
Jayakumar Selvakani

Allemahesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response