473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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
May 4 '06 #1
1 2119
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" <to*******@hotmail.com> wrote in message
news:eO**************@TK2MSFTNGP03.phx.gbl...
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

May 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: usenet | last post by:
My sourceforge search isn't turning up much that looks appropriate, or has not been abandoned. Does anyone have a recommendation based on experience for a PHP / MySQL site membership management...
2
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver...
7
by: Phil | last post by:
Is it possible to share the ASP.Net database that maintains membership information? I want to use a single database install with several independent sites. I've seen where there is information...
5
by: timdennis30 | last post by:
I am wondering how create a security framework for all our web application. Is it possible to create a single forms authenication (cookieless) setting for multiple web applications and web config...
5
by: sloan | last post by:
Are there any "gotchas" on deploying the default Membership Provider (aspnetdb) to a hosting provider? I'm about to do it. And how does one get to the "auto configurer" .. that allows you to...
2
by: Ryan | last post by:
I am new to .net 2.0 and was wondering how best to leverage its membership capabilities to handle a situation similar to the following: We have a 4 web applications belonging to 3 departments. ...
3
by: GaryDean | last post by:
I have serveral applications now running that are using the MembershipProvider classes and they are each using their own security tables in SQL Server 2005 instead of the express databases - they...
1
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the...
2
by: Andy B | last post by:
I have a database with asp.net membership inside it. How would I use it for 2 or more web applications at the same time?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.