Using one Asp.net Membership database with multiple applications Single Sign On

后端 未结 2 453
不思量自难忘°
不思量自难忘° 2020-11-29 03:21

I have two asp.net applications on one IIS server and I would like to use the same back end asp_security database and membership provider. I\'ve read that all I have to do

2条回答
  •  青春惊慌失措
    2020-11-29 04:08

    If my understanding serves me correctly, the users authentication credentails are stored within the HTTP context of each application. So switching between the two applications will not automatically authenticate the user, since a new context will be created when you switch to app B.

    What I believe may the correct approach would be to use the DefaultCredentials (or UseDefaultCredentials property to True) of the current user prior to switching to app B.

    When you say switch what do you mean eg. open a different browser window and access app B or request a page from appB from appA?

提交回复
热议问题