D
djhexx
Hi. We have an asp.net intranet application written in VB that uses
forms authentication for all it's pages. I have a C# asp.net
application that I just wrote. The company would like the C#
application to authenticate using the same mechanism as the intranet
app. Therefore...if I try to login to the c# app, it should redirect
me to the intranet login. Once I pass authentication, I should be able
to access the c# app.
Now. Here is a piece of my c# apps web.config:
<authentication mode="Forms">
<forms loginUrl="http://intranetURL/logon.aspx"
name="adAuthCookie" timeout="60" path="/">
</forms>
</authentication>
When I try to access the C# apps page, it redirects me to logon.aspx as
intended. But once I login, it doesn't authenticate me for the C#
app.. If I try to go back to the C# app, it just takes me right back
to login.
An easy solution would be to just to basically merge the c# and the vb
project into one and it would work fine...but...alas...you can't mix
the two languages. How can I get authentication working between to
apps of different language with the same form mechanism?
If you need any more specific information, I will gladly give. Thanks
in advance!!
forms authentication for all it's pages. I have a C# asp.net
application that I just wrote. The company would like the C#
application to authenticate using the same mechanism as the intranet
app. Therefore...if I try to login to the c# app, it should redirect
me to the intranet login. Once I pass authentication, I should be able
to access the c# app.
Now. Here is a piece of my c# apps web.config:
<authentication mode="Forms">
<forms loginUrl="http://intranetURL/logon.aspx"
name="adAuthCookie" timeout="60" path="/">
</forms>
</authentication>
When I try to access the C# apps page, it redirects me to logon.aspx as
intended. But once I login, it doesn't authenticate me for the C#
app.. If I try to go back to the C# app, it just takes me right back
to login.
An easy solution would be to just to basically merge the c# and the vb
project into one and it would work fine...but...alas...you can't mix
the two languages. How can I get authentication working between to
apps of different language with the same form mechanism?
If you need any more specific information, I will gladly give. Thanks
in advance!!