I see how to put material into the session and cache from this project .
Could you tell me how to determine the session timeout in controllers / actions? Do we need some kind of attribute?
If I were you, I would try using the MVC6 cache helper.
You can read more here http://www.davepaquette.com/archive/2015/06/03/mvc-6-cache-tag-helper.aspx