重命名ASP.NET_SessionId [英] Rename ASP.NET_SessionId
本文介绍了重命名ASP.NET_SessionId的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要重命名默认由ASP.NET创建的ASP.NET_SessionId的cookie。比方说,我想它的名为foo。这可能吗?
I need to rename the ASP.NET_SessionId cookie created by default by ASP.NET. Let's say I want it's named "foo". Is it possible?
推荐答案
添加到你的web.config: -
Add to your web.config:-
<system.web>
<sessionState cookieName="foo" />
</system.web>
这篇关于重命名ASP.NET_SessionId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文