Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET Membership - Multiple Sites, Shared Info?

Reply
Thread Tools

ASP.NET Membership - Multiple Sites, Shared Info?

 
 
Tony Jones
Guest
Posts: n/a
 
      05-04-2006
Can I have two ASP.NET site using the same membership provider settings?

For this to happen, the applicationName would have to be the same, but what
about the configuration of the <properties> within the <profile> section?
In the web.config's for both sites, do these config sections have to be
identical? Could I actually fully define the <properties> section in one
application and not in the other?

Do the <profiles> section of each site have to be identical?
Any "gotchas" to watch out for?

The reason I have the sites seperate is because they will have a different
code base and I would like to manage them in that aspect.

Any experiences in doing this would be appreciated.

Thanks.

TJ


 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      05-05-2006
There are a couple of issue with sharing information. The first is where the
info is persisted. While I see no problem with personalization being used
across mutliple apps, as it is persisted in a DB, I do not know the exact
mechanics.

The second issue is session state. You can set up multiple web apps to use
the same session state, at least partially. By setting the machine keys to
the same on both servers (encrypt and decrypt - there are articles on this,
so google), you can share the session ID and the basic user info carried in
state (who are you? type of info). This does not mean you can set session
variables and have them transfer, however.

As for personalization, it is likely both have to act as the same app. I
would have to peek underneath the hood at the tables and mechanism to
confirm this, but I am fairly confident that it can be done by acting as if
the plethora of apps are a single app, as far as personalization and
membership go.

If not, you can create your own provider, as the feature set uses a provider
model to allow extensibility.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
"Tony Jones" <> wrote in message
news:...
> Can I have two ASP.NET site using the same membership provider settings?
>
> For this to happen, the applicationName would have to be the same, but
> what about the configuration of the <properties> within the <profile>
> section? In the web.config's for both sites, do these config sections have
> to be identical? Could I actually fully define the <properties> section
> in one application and not in the other?
>
> Do the <profiles> section of each site have to be identical?
> Any "gotchas" to watch out for?
>
> The reason I have the sites seperate is because they will have a different
> code base and I would like to manage them in that aspect.
>
> Any experiences in doing this would be appreciated.
>
> Thanks.
>
> TJ
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership permissions after publishing an ASP.NET Membership site. Tino Donderwinkel ASP .Net 2 06-18-2008 08:16 AM
Membership personalization - Shared Scope problem Leeor Chernov ASP .Net 1 06-20-2007 04:31 PM
ASP.NET 2.0 Membership Provider - SSL alias - shared webapp Rich Williams ASP .Net Security 2 07-06-2005 01:24 PM
Shared Public Variables and Shared Methods Joe Fallon ASP .Net 3 07-16-2004 07:11 AM
Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class. DJ Dev ASP .Net 3 02-08-2004 04:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57