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

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

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -