如何删除aspx url中的额外路径 [英] How do I remove extra path in aspx url
本文介绍了如何删除aspx url中的额外路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
使用VS 2013和VS 2015,当我推出ASPx(c#/ fw4.0)项目时,我得到了下一个案例。
第一部分我看到这样的网址:
Hi people!
Using VS 2013 and VS 2015 I got the next case when I lauch my ASPx(c#/fw4.0) project.
First part I see a url like this:
http://localhost:50165/default.aspx
完成加载后,网址将转换为:
And after finish to load, the url will convert like this:
http://localhost:50165/(S(ficpfw4i0cfqzqh5qcpm4c4k))/default.aspx
每次启动应用程序时,代码都已更改。
请告诉我这是什么问题?
感谢您的建议
我的尝试:
我检查了web.config查找任何错误的配置,它看起来没问题。
我检查了属性项目,看起来没问题。
Every time I launch the application, that code has changed.
Would you please tell me what is the issue?
Thanks for your suggesting
What I have tried:
I checked the web.config looking for any bad configuration, it looks okay.
I checked the properties project, it looks okay.
推荐答案
作为评论中提到的F-ES Sitecore,您的web.config可能已启用无Cookie会话。它没有任何问题,但您可以在web.config中更改它。请参阅无Cookie的ASP.NET [ ^ ]了解更多信息。
所以而不是在cookie中发送会话ID,而是在URL中发送。
As F-ES Sitecore mentioned in the comments, your web.config likely has cookieless sessions turned on. There is nothing wrong with it but you can change that in your web.config. See Cookieless ASP.NET[^] for more information.
So, instead of sending a session id in a cookie it is sent in the url.
这篇关于如何删除aspx url中的额外路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文