ASP.NET Membership in an iframe
Posted on 2007-07-23
Is it possible to use Asp.Net membership in an iframe?
The main page A will have its own login system. The iframe page B will also have its own login system. The A and B talk to the same DB (and same users), so if the membership could span over the 2 pages that would be even better. These are two separate applications so i thought this wouldnt be possible.
The login and everything is working perfectly for A and B separately, until i introduce an iframe. It authenticates the user correctly and doesnt display an error message. When its an invalid password it displays the error. However it seems like the Membership wont last in B and it gets dropped automatically.
Ive read that using session in iframes is bad if they try to use the same names (Im guessing there would be no difference in membership). B is on the same server as A, however because its a 3rd party product, it was easier to wack it in an iframe than try to integrate two products.
Has anyone encountered something like this before? Thanks.