• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

ASP.NET Membership in an iframe

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.
0
UnexplainedWays
Asked:
UnexplainedWays
2 Solutions
 
lunadlCommented:
The membership and roles setup is specifically keen to managing multiple applications and will use the same user information throughout different applications. I think, not 100% sure, but quite positive that they will need to 'register' seperately for each one though and if the username/pass isn't populated automatically for them then users may end up with a different username for one system than the other.. or you can manage the whole registration process yourself and make sure they register for both systems at once.

For your scenario specifically it seems that you don't need to have them as seperate applications, In  a test environent you may want to try giving them the same application ID in the web.config and see how they react. Then you should only need a single login.
0
 
LeeKowalkowskiCommented:
Yes, it's P3P-related.

http://en.wikipedia.org/wiki/P3P
http://www.w3.org/TR/P3P/
http://msdn2.microsoft.com/en-us/library/ms537341.aspx

Not easy to understand, unfortunately, it appears you need a P3P header in your responses, or a policy file on your server.

I can't help much more, I've never needed to do it, I steer clear of IFRAMES because they're not brilliant for user-experience.

I think you'll find it works in FireFox, as only IE has P3P set up by default.

--
Lee
0
 
UnexplainedWaysAuthor Commented:
I managed to get it running when the two app's were in the same solution.  However when one was linking to another server it wouldn't work.

I'm not a fan of iframes either but this is a concept application.

I spent half of yesterday pulling it appart and adding it bit by bit and now the two are integrated!!!  so no more iframe and hello web control!


Thanks for the help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now