I set session to be 24h.
I would like that one object, ie Session["Table1"] to expire after 20 minutes, because it's too big.
Can I manage just that one object to be different?
Thanks
Cache
has expiration capabilities. Unlike session, it is shared by all users accessing the web application (per process). Depending on your needs, this may be a good or a bad thing.
An alternative is to store a user-specific cache key in session, and have that key point to an item in the cache that expires sooner than the session.
Consider
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.