Seperate cache variable for each instances of an application
-
in my application i am storing values in a cache variable.i want to retain the value till the application closes. it is coming correctly. the problem is when another user takes the same application cache variable is havingthe previous users cache value.can i create new instance of that cache variable? or any other method?..........
-
in my application i am storing values in a cache variable.i want to retain the value till the application closes. it is coming correctly. the problem is when another user takes the same application cache variable is havingthe previous users cache value.can i create new instance of that cache variable? or any other method?..........
-
Hi, Do you mean each user is seeing the same cache contents & that's not what you want? If so place what user currently placing in the cache into the users session.
-
This may not be elegent but could you stick the dataset into the cache and use the datatable default view Rowfilter property to get the user specific stuff? private DataView getUserDataFromCache(string user) { DataView dv = Cache["Dataset"].Tables[0].DefaultView; dv.RowFilter="UserID='" + userid + "'"; return dv; }