I want to put two private variables in my controller. I am going to fill these when the page loads by making an ajax call on the front end to get some user IP data, and fill these variables.
Can I be sure that they will be filled throughout the user experience with the site as long as they don’t refresh the page (upon refreshed they will be set again), or does MVC not work this way?
The mvc is stateless. Fullstop.
ASP.NET MVC – State and Architecture