Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - ASP.NET Membership - Multiple Sites, Shared Info?

 
Thread Tools Search this Thread
Old 05-04-2006, 05:50 PM   #1
Default ASP.NET Membership - Multiple Sites, Shared Info?


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




Tony Jones
  Reply With Quote
Old 05-05-2006, 01:43 PM   #2
Cowboy \(Gregory A. Beamer\)
 
Posts: n/a
Default Re: ASP.NET Membership - Multiple Sites, Shared Info?
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
>





Cowboy \(Gregory A. Beamer\)
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat can not find requested sources error msg as bellow. bakul bhowmik Software 0 06-04-2009 06:18 PM
Error: Physical sythesis tool PALAC is not supported by Formal Verification tool Conf bbiandov Software 0 12-22-2008 05:25 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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