开发者

MS Ajax breaks when Response.Redirect is used between two applications

I'm currently working on an application that needs to use Windows and Forms authentication (Windows for internal users, Forms for external). To achieve this I created a small application that grabs Windows users' Domain and Username then redirect to the main application which uses forms authentication.

The applications are hosted as follows:

  • http://webserver/passthrough (stores the windows auth data in cookie and redirects)
  • http://webse开发者_如何学Pythonrver/app (the main application)

Everything works except for Microsoft Ajax on the main application completely breaks for windows users after the redirect from the passthrough. If the windows user then closes the browser window and then navigates directly to http://webserver/app in a new session, everything works fine.

Any input would be greatly appreciated.

Jason


OK, so I solved this, but it's really not pretty...

I deployed the passthrough application to a separate website running on a different port with the same host header so the deployment now looks like this.

  • http://webserver:81/Passthrough
  • http://webserver/app

Really not what I wanted to do, but it works.

I vow never to use Microsoft Ajax ever again!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜