开发者

Is There a Way to Version an HTTP Cookie?

Is it possible to 开发者_开发技巧provide version information to go with an HTTP cookie? I have a cookie which tells the page whether or not to prompt a user for action, based on whether or not the user wants the prompt. On a version upgrade of the page, I need to prompt the user regardless. Can I integrate this into my existing cookie?


A cookie is little more than a string with an expiry time. You can encode whatever information you like into that cookie, including a number representing a version.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜