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 "applicatio ns"
being stored, but haven't found a way to specify between applications/sites.
Thanks,
Phil 7 1284
I think you can do this using the Application_Aut henticateReques t event in
the global ASAX to get to your security provider. I have not done this
myself, but I think this could be the way to do it.
--
Best Regards
The Inimitable Mr Newbie º¿º
"Phil" <Ph**@discussio ns.microsoft.co m> wrote in message
news:A9******** *************** ***********@mic rosoft.com... 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 "applicatio ns" being stored, but haven't found a way to specify between applications/sites.
Thanks, Phil
Not if you use Access for your database.
Using Access would require different databases.
If you use SQL Server or SSE you shouldn't have a problem.
Just pointing to the database you want to use should be enough.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Phil" <Ph**@discussio ns.microsoft.co m> wrote in message
news:A9******** *************** ***********@mic rosoft.com... 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 "applicatio ns" being stored, but haven't found a way to specify between applications/sites.
Thanks, Phil
Thanks for the replies.
I'm using SQL Server 2000 currently, and will likely move to 2005 when I
have time. To my understanding, simply pointing to mutiple sites to the same
database will mean they share both the database and the date. For instance
users from Site A will be able to long into Site B. I'm wanting to share the
database install among sites, but not the data. I want users from Site A to
be able to only access Site A, and Site B to only access Site B.
Thanks,
Phil
"Juan T. Llibre" wrote: Not if you use Access for your database. Using Access would require different databases.
If you use SQL Server or SSE you shouldn't have a problem. Just pointing to the database you want to use should be enough.
Juan T. Llibre, ASP.NET MVP ASP.NET FAQ : http://asp.net.do/faq/ Foros de ASP.NET en Español : http://asp.net.do/foros/ =============== =============== ======== "Phil" <Ph**@discussio ns.microsoft.co m> wrote in message news:A9******** *************** ***********@mic rosoft.com... 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 "applicatio ns" being stored, but haven't found a way to specify between applications/sites.
Thanks, Phil
On Mon, 7 Nov 2005 05:39:02 -0800, "Phil"
<Ph**@discussio ns.microsoft.co m> wrote: I'm wanting to share the database install among sites, but not the data. I want users from Site A to be able to only access Site A, and Site B to only access Site B.
When you configure the <membership> section in web.config (which
you'll have to do to point to anything other than a SQL express
database in App_Data), then set ApplicationName for each of your
application's to a unique string.
ApplicationName is used to scope membership data so it will not be
shared.
--
Scott http://www.OdeToCode.com/blogs/scott/
Thanks, I'll give that a try.
"Scott Allen" wrote: On Mon, 7 Nov 2005 05:39:02 -0800, "Phil" <Ph**@discussio ns.microsoft.co m> wrote:
I'm wanting to share the database install among sites, but not the data. I want users from Site A to be able to only access Site A, and Site B to only access Site B.
When you configure the <membership> section in web.config (which you'll have to do to point to anything other than a SQL express database in App_Data), then set ApplicationName for each of your application's to a unique string.
ApplicationName is used to scope membership data so it will not be shared.
-- Scott http://www.OdeToCode.com/blogs/scott/
I see you fixed your 'Fine' print.
--
Best Regards
The Inimitable Mr Newbie º¿º
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:qk******** *************** *********@4ax.c om... On Mon, 7 Nov 2005 05:39:02 -0800, "Phil" <Ph**@discussio ns.microsoft.co m> wrote:
I'm wanting to share the database install among sites, but not the data. I want users from Site A to be able to only access Site A, and Site B to only access Site B.
When you configure the <membership> section in web.config (which you'll have to do to point to anything other than a SQL express database in App_Data), then set ApplicationName for each of your application's to a unique string.
ApplicationName is used to scope membership data so it will not be shared.
-- Scott http://www.OdeToCode.com/blogs/scott/
On Mon, 7 Nov 2005 14:53:26 -0000, "Mr Newbie" <he**@now.com > wrote: I see you fixed your 'Fine' print.
Yes - thanks for pointing that out. It's such a glaring error once I
saw it!
--
Scott http://www.OdeToCode.com/blogs/scott/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul Keegstra |
last post by:
Hi,
I am currently working on an asp.net 2.0 web site that is a replacement of a
classic asp web site. The current web site uses a Commerce Server 2002
database for storing user information. It does not currently use any of the
Commerce Server 2002 functionality with the exception of the user
authentication features.
I have written my replacement application to use a custom login form and
custom connection string so that I can use...
|
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= |
last post by:
I have been having some trouble with implementing a custom Membership
Provider. We have a custom data store and business logic that pulls user
information. I need some level of functionality above and beyond what the
prodiver currently allows. I need the ability to access a user id and the
user's permission id. With Forms authentication in 1.1, I would just create
a custom identiy and principal and store the information in the identity....
|
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= |
last post by:
Hi, I am trying to play with the Survey manager application provided
gracefully by Microsoft at
"http://msdn.microsoft.com/vstudio/express/sql/samples/" VB team(so many
thanks), compiled the win app, added 2 users beside the "thardy" user already
shipped with the aplication. I can not pass the Login page, I always get the
following message on the login page :
"Your login attempt was not successfull"
In spite of the fact I tried to...
|
by: unionhorse |
last post by:
Hello,
We use an access database for the membership administration of thousands of musicians. Membership status varies from "active" to "suspended" to "expelled".
Musicians go in and out of active membership. The database keeps track of the last time a member was suspended and the last time a member was expelled. Unfortunately, like many programs, the history is written over each time.
My goal is to automate capturing a "30-years...
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |