473,729 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2143
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*******@hotm ail.com> wrote in message
news:eO******** ******@TK2MSFTN GP03.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
1367
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 system ? Requirements are fairly basic: - After the existing credit card processing system approves membership purchase, info will be fed to this system. - Multiple (two, perhaps more) site user accounts per registration - Restricted access to...
2
2271
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 in any place other than the default website? I do not want to install it there as our IIS has multiple websites, but nowhere is there an option when creating the install package in Visual Studio to specify what website on the server you want to...
7
1283
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 about "applications" being stored, but haven't found a way to specify between applications/sites. Thanks, Phil
5
1135
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 files. For example, I want the security web site on our webserver to serve as a portal for other sites on our server. Example: www.myFirstWebApp.com web.config <forms loginUrl="www.myCentralLogin.com/login.aspx ">
5
1476
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 setup roles/users .....? Can I do these steps:
2
1421
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. Each of these is owned by a particular department. Access to the systems can be shared across department, but access is controlled within each department. Ex:
3
1936
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 are all work well. Now we have a need to have many different asp.net websites and web services use a single security database because they all share the same user and administrator community. It doesn't seem there will be a problem with all of...
1
3012
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 Membership & Roles ApplicationName to separate out my different groups of users within the membership database. I had been having problems with ‘random’ bugs - as though my Membership database was 'sharing' information between users and...
2
1783
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
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8148
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.