开发者

Response.Redirect in Application_AuthenticateRequest RawUrl

开发者 https://www.devze.com 2022-12-15 14:00 出处:网络
I am using a Response.Redirect in global.asax.cs. When the page loads the RawUrl property contains an encoded directory of some kind.

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 u开发者_运维技巧ser 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


"(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


It is the setting that is taken from the web.config as in the following location;

<authentication mode="Forms">
  <forms loginUrl="~/en/Access/Login" defaultUrl="~" cookieless="UseUri" timeout="2880" />
</authentication>

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 the cookieless attribute to use cookie instead of URL for session details

0

精彩评论

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