Store ListMenu In Memory or in Cookie

3

Good afternoon.

I have an application that has a whole level of permission management for page access and a number of other settings.

Always when a user authenticates, I mount a list with all the menus (links / pages) that this user can access in the system. What happens is that at this moment (homologation of the most recent version) the list is being populated with every request / refresh of a page. What I want is to know if there is any way I can store it in something I can check out whenever I need it, without having to go to the database.

So far I've used (attempts):

  • Session: works, but I do not like to use it, even though the application has a daily volume of + 10k people;
  • FormsAuthentication UserData: I tried to convert a viewModel to JavaScriptSerialization, but as the size became huge, it ended up not being created and not generated the cookie;
  • ActionResult OutputCache: This method was one of the ones I liked the most, but it is not specific to each session / login but to the application as a whole;
  • I hope you can help me, because for a long time I've been breaking my head to think about this solution.

    Hugs!

        
    asked by anonymous 11.04.2016 / 20:36

    1 answer

    2
    11.04.2016 / 21:57