I’m attempting to use the new ServiceStack session feature. I’ve read through the help page, but I don’t see anywhere that you configure the timeout (aka, the expiration date of the objects in the cache). I expected to be able to set it on the SessionFeature instance created in my AppHost constructor. How is it done? For my application, I need a very short timeout: 30 seconds.
I’m attempting to use the new ServiceStack session feature. I’ve read through the help
Share
I figured this out. It’s actually on a per-object basis. You set the timeout when adding to the cache collection through the overloads of Add. The default timeout is infinite. At least that’s what I see on the cache objects. I’m not sure how the cookie part of the equation works.