Application_AuthenticateRequest RawUrl 中的 Response.Redirect
我在 global.asax.cs 中使用 Response.Redirect。 当页面加载时,RawUrl 属性包含某种编码目录。
"/(F(D7zFAWNl_SpT-cuyRXksIZnvwBB_bYfBl3ens83McZjPg9zLBvcjvik6FkwBNhnjeK-faeUt6PUYOZSsYXKdg4hi4IDPTDO5diQf693NLpw1))/Integration/Workflow.aspx"
这个可怕的目录来自哪里? 它破坏了目标页面上使用 RawUrl 获取路径信息的一堆用户控件。
为什么 Response.Redirect 会发明这条可怕的路径并添加它? 有什么办法解决这个问题吗?
谢谢克雷格
I am using a Response.Redirect in global.asax.cs.
When the page loads the RawUrl property contains an encoded directory of some kind.
"/(F(D7zFAWNl_SpT-cuyRXksIZnvwBB_bYfBl3ens83McZjPg9zLBvcjvik6FkwBNhnjeK-faeUt6PUYOZSsYXKdg4hi4IDPTDO5diQf693NLpw1))/Integration/Workflow.aspx"
Where does this horrible directory come from?
It's breaking a bunch of user controls on the target page which use the RawUrl to get path information.
Why would Response.Redirect invent this horrible path and add it?
Is there any way around this?
Thanks
Craig
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
"(F(D7zFAWNl_SpT-cuyRXksIZnvwBB_bYfBl3ens83McZjPg9zLBvcjvik6FkwBNhnjeK-faeUt6PUYOZSsYXKdg4hi4IDPTDO5diQf693NLpw1))" 是您的会话 ID 或身份验证。 id 存储在您的 URL 中而不是 cookie 中。您可以在 web.config 文件中更改此设置
"(F(D7zFAWNl_SpT-cuyRXksIZnvwBB_bYfBl3ens83McZjPg9zLBvcjvik6FkwBNhnjeK-faeUt6PUYOZSsYXKdg4hi4IDPTDO5diQf693NLpw1))" is your session id or auth. id stored in your URL and not in a cookie. You can change this in your web.config file
它是从 web.config 中获取的设置,如下位置所示;
如果您设置
cookieless="UseUri"
,您的会话详细信息将附加到您的 URL,而不是存储在 Cookie 中。设置
cookieless="UseCookies"
或删除cookieless
属性以使用 cookie 而不是 URL 来获取会话详细信息It is the setting that is taken from the web.config as in the following location;
If you set
cookieless="UseUri"
, your session details will be appended to your URL instead of storing in a cookie.Set
cookieless="UseCookies"
or remove thecookieless
attribute to use cookie instead of URL for session details