I have design 2 web apps and use Forms Authetication for single sign on
Web A: contains a Login.aspx
page
Web B: contains an OK.aspx
page
when access Ok.aspx
in Web B, it will redirect to Login.aspx
in web A (it work well)
But the problem is when I log on successfully, I can't redirect to Ok.aspx
in web B
FormsAuthentication.RedirectFromLoginPage(username,false);
It try to redirect to Ok.aspx
in web A not web B
my <authentication>
sections:
Web A:
<authentication mode="Forms">
<forms name="appNameAuth"
path="/"
loginUrl="login.aspx"
protection="All"
timeout="30"
enableCrossAppRedirects="true">
</forms>
</authentication>
Web B:
<authentication mode="Forms">
<forms name="appNameAuth"
path="/"
loginUrl="webAdomain/login.aspx"
protection="All"
timeout="30"
enableCrossAppRedirects="true" >
</forms>
</authentication>
Any suggestion?