开发者

Setting Expiration Time on data stored using Isolated Storage

Is it possible to set an expi开发者_JAVA技巧ration time on the data stored in Isolated Storage like we can do for cookies? Can we have something similar to Session cookie in Isolated Storage?


No... isolated storage is for permanent storage so it doesn't make sense to delete automatically (since cookies are temporary files)..
The work around may be :
Store another parameter in isolatedstorage specifying time when to expire.. so when the app opens just check for this date and delete the files as per your need.. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜