Membership with many Web App

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khoimk
    New Member
    • Jan 2010
    • 2

    Membership with many Web App

    I have 2 Web apps. Could I use asp.net membership with the same user base for my web apps?
    Please help in detail.
  • sanjib65
    New Member
    • Nov 2009
    • 102

    #2
    In your own domain I'm not sure it's possible. But in your own machine where you have SQL Server 2005 installed, it can be done because you can not run two web applications at one go!

    Comment

    • khoimk
      New Member
      • Jan 2010
      • 2

      #3
      Thx for you help but you misunderstand me.
      Let me explain:
      I have two web apps
      1. MusicSite run at: mysite.com/music
      2. NewsSite run at: mysite.com/news
      I want to use one user database for two sites and I want to know it could be done with ASP.NET MemberShip or not. And How if could ?

      Comment

      • sanjib65
        New Member
        • Nov 2009
        • 102

        #4
        Oh yes, it can be done happily using membership class. All you need to do is put those music and news folders in Member's area and in your page behind code check it so that any anonymous visitor can not enter there without registering.
        Even you add an Administration zone from where you can keep a check on those members!

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          I don't see why this is a problem...but then again I haven't had the pleasure of using ASP.NET membership much (except to try it out and play with it).

          From what I remember all you have to do is set up the web.config to point at the database that contains the users.

          How To: Use Membership in ASP.NET 2.0

          -Frinny

          Comment

          Working...