I'm working on ASP.NET MVC Application. Facing few problems in session timeout. I want to know the basics like #1. Where Session, cache , tempdata values stored in system and #2. How it is deleted from the storage automatically/manually after certain period. Thanks in advance.
Asked
Active
Viewed 127 times
-4
-
Session is stored in-memory by default – Vsevolod Goloviznin Feb 10 '15 at 09:53
-
thanks for a quick response @VsevolodGoloviznin. I need to know the physical location in system. – karthik Feb 10 '15 at 10:02
-
It's in the memory of the running process, it doesn't have any 'physical' location. – Vsevolod Goloviznin Feb 10 '15 at 10:04
1 Answers
0
Sessions are stored on the server, by default these are set to 20mins or are overriden by there server/site configuration. Timeout issue - How to set session timeout in web.config
Cache- well there is server cache and browser cache, so it depends which cache as to where it is stored. On the client side its just a copy of the html and various other assets to make it quicker to access. The location depends on your machine setup.
Cookies - These are stored on your machine, there is no specific place, its dependant on your machines setup, temp files, group policy etc.
Most browsers check for the latest version of content, but you can force content expiry on the server.