문제

I have designed a website to use windows authentication. Everything works as expected. But my recent task was to integrate another site into this site(I can't re-write the whole application into this). So i have followed to use an iframe. Now my child site also uses windows authentication. So When i hit the parent site it is asking for windows credentials and user validated. When i hit the child site on iframe, it is again giving me the pop up to enter the credentials, Is there a work around for this? Please help.

Note: Both these applications are hosted on the same server.

Thanks in advance.

도움이 되었습니까?

해결책

Most likely, the two sites are a different subdomains or domains. If they're just different subdomains on the same domain, you can set the sites to use a wildcard domain cookie, which will allow any subdomain on that domain to see the cookie and recognize authentication from the other. However, if they're on different domains, you're out of luck.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top