I have an object that I want to save for a moment. Now the object is in the controller, the controller will generate a view. An AJAX request is executed in terms of the next controller. For this moment I need a previously saved object. I used to use a session and it worked well. But not sure if this is correct. Is the session an answer to this or is there something else?
I also used cache. But according to the cache concept. It will be available to all users. So one user information will be redefined on another. Thus, the data of cached objects will be changed for the same user. I need to process the data store for a specific user (independently).
How is this possible? any other approach please share me.
In the controller, I used Httpcontext.cache["key"]=dataset;
but someone suggested this but didn't display
I explain:
In the controller: not suitable. httpcontext.current.cache
HttpContext.Currenthandlerand , and only in this case. How can we handle temp data warehouse in MVC. HttpContext.Currentnotification
Please help me.
source
share