Response.Redirect weird behavior in IE 8

Here is a script in which I use Response.Redirect ..

Base site invoking SSO using httpwebrequest to a third party website - Get the key. After the base site receives the key site, it redirects the client’s browser to the third-party website using the key.

Strange thing:

Let's say the website URL is as follows : http: //basewebsite/SSO/ThridpartySSO.aspx A third-party URL redirects : http: //thirdparty/Incoming/IncomingSSO.aspx? Key = ASFDSFWERASDFASDF

After doing httpwebrequest and getting the key, all I do is

Response.Redirect("http://thirdparty/Incoming/IncomingSSO.aspx?key=" + key);

It works all the time in all browsers except IE8, very sporadically, I can’t show a page with this URL

HTTP: // basewebsite / Inbox /IncomingSSO.aspx key = ASFDSFWERASDFASDF

Please note that the domain name in the above URL is the base website .., but the rest of the URL is a third-party site.

I can not understand why, Any help is greatly appreciated.

+3
source share
1 answer

Try using the following

Response.Redirect("your third party url", false);

it Redirects the client to the new URL. Specifies the new URL and whether the current page completes.

0
source

Source: https://habr.com/ru/post/1772502/


All Articles