views:

16

answers:

1

Hello, i want to use form authentication.i have 2 different application.both are at different machine.i want to use common form authentication. suppose i have 2 application called "app1" and "app2".

There is one form called CElaunch.aspx page in app2.and i want to use this page in app1. we cant navigate the this page directly it should be ask to login page when we open directly. login page is from app1.

app2 web.config file

< authentication mode="Forms" > < forms loginUrl="http://slx75pc/SlxClientSC73/Login.aspx" domain="configengine.com" protection="All" timeout="30" name=".SLXAUTH" path="/" defaultUrl="default.aspx" requireSSL="false" slidingExpiration="true" cookieless="UseDeviceProfile" enableCrossAppRedirects="true" / > < / authentication > < machineKey validationKey="key" decryptionKey="key" validation="SHA1" / > < authorization > < deny users="?" / >

< / authorization >

app1 web.config

< forms loginUrl="http://slx75pc/SlxClientSC73/Login.aspx" domain="configengine.com" protection="All" timeout="30" name=".SLXAUTH" path="/" defaultUrl="default.aspx" requireSSL="false" slidingExpiration="true" cookieless="UseDeviceProfile" enableCrossAppRedirects="true" / > < / authentication > < machineKey validationKey="key" decryptionKey="key" validation="SHA1" / > < authorization > < deny users="?" / >

< / authorization >

when i navigate the CElauncvh.aspx page from app1 then it is not displaying the page which i want. it redirect to Login page.

Please let me know if you have any solution.

Thanks

samir

A: 

Have a read of http://msdn.microsoft.com/en-us/library/eb0zx8fc.aspx and see how you go. It sounds like your problem may be not setting a matching machineKey section in the two sites' Web.config files.

Carson63000
hello,as you have said which is already done.In both the web.config file machine key is match.if i have this both application in same machine then its working fine. but the problem is that both the application have different machine.
Samir