asp.net - ASp .net Session variables persistance and modifications -


i using standard session in asp .net store user variables. problem in code change fields in variables fetch session. question is, should do? how should handle variables sure latest changed version stored in session. there kind of mechanism this?

you should wrap session value in property read , write property

public string myval{   get{    return session["myval"];   }   set{    session["myval"]= value;   }  } 

Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -