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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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