如何将Cookie过期设置为“会话",在C#中? [英] How do I set cookie expiration to "session" in C#?
本文介绍了如何将Cookie过期设置为“会话",在C#中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
自我解释.在PHP中,解决方案是将cookie过期时间设置为0;否则,将cookie过期时间设置为0.我不确定C#,因为它需要一个DateTime值.
Self-Explanatory. In PHP, the solution would be to set the cookie expiration to 0; I'm unsure about C# since it requires a DateTime value.
推荐答案
查看全文