Asp.net mvc class reference in session
Posted
by Billy
on Stack Overflow
See other posts from Stack Overflow
or by Billy
Published on 2010-03-14T03:51:14Z
Indexed on
2010/03/14
3:55 UTC
Read the original article
Hit count: 181
asp.net-mvc
Hi,
if I put a custom class in session, then in an action method I get an instance of that class from session, and populate some fields, I noticed that when a different controller gets that class from session, those fields are populated. Even though after the first call didn't save the updated class back in session.
is this typical behavior for session objects?
I thought I had to use keyword 'static' on the class in session for this to happen
thanks
© Stack Overflow or respective owner