c# - cache insert object without specifying any depencies,expiry etc item disappear miraculously -


we use cache object flag identify if username logged in. system.web.httpcontext.current.cache.insert(sessionobjects.currentuserid.tostring(), session.sessionid);

there action filter basicially checks if item exists in cache. if user logged out

however i'm finding object miraculously disappears , causes null exceptions when trying retrieve cache within action filter.

i notice don't seem specifiy expiration/ dependency specifics. given sample code above, there conditions .net of removed entry me without permission?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -