473,837 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Membership with asp 2.0

I am not sure if I should use the new membership and roles feature in
ASP.NET 2.0. My user information is large, and does not fit in the
default implementation tables. I don't know if it is worth coding my
own provider.

Linking the my user table to the ASP user table might not be protected
with a transaction. I am wondering what people out there do when they
have large user information and want to use security with ASP.NET
membership and roles.

Oct 31 '06 #1
5 1563
First, I would NOT store it in profile, as so many examples show.

Custom Provider? This is a great choice, as you get the framework, but also
get what you want. Plan it out well before you start, however, or you are
going to end up having nightmares.

Roll your own? This is an option, but generally the custom provider,
provided you have it lined up and there is nothing inherently incompatible
with the provider model, is easier to maitain.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Coder" <mi*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
>I am not sure if I should use the new membership and roles feature in
ASP.NET 2.0. My user information is large, and does not fit in the
default implementation tables. I don't know if it is worth coding my
own provider.

Linking the my user table to the ASP user table might not be protected
with a transaction. I am wondering what people out there do when they
have large user information and want to use security with ASP.NET
membership and roles.

Oct 31 '06 #2
I agree about the profiles. I am not planning to store data there.

I think I will roll my own functions. At the end it is better to be
specific to my needs then too generic.
Cowboy (Gregory A. Beamer) wrote:
First, I would NOT store it in profile, as so many examples show.

Custom Provider? This is a great choice, as you get the framework, but also
get what you want. Plan it out well before you start, however, or you are
going to end up having nightmares.

Roll your own? This is an option, but generally the custom provider,
provided you have it lined up and there is nothing inherently incompatible
with the provider model, is easier to maitain.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Coder" <mi*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
I am not sure if I should use the new membership and roles feature in
ASP.NET 2.0. My user information is large, and does not fit in the
default implementation tables. I don't know if it is worth coding my
own provider.

Linking the my user table to the ASP user table might not be protected
with a transaction. I am wondering what people out there do when they
have large user information and want to use security with ASP.NET
membership and roles.
Oct 31 '06 #3
I would bite the bullet and go with the custom provider. You can use MS's
tables as a starting point and gain the use of their framework.

BTW: We have tried, due to schedule, to bolt onto the default MS provider.
It is a royal pain in the butt when you step outside of that box. I would
advise a custom provider over the pain we have discovered. In fact, I would
go custom provider day 1, based on this experience, as someone always seems
to add functionality to membership.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Coder" <mi*********@gm ail.comwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
>I agree about the profiles. I am not planning to store data there.

I think I will roll my own functions. At the end it is better to be
specific to my needs then too generic.
Cowboy (Gregory A. Beamer) wrote:
>First, I would NOT store it in profile, as so many examples show.

Custom Provider? This is a great choice, as you get the framework, but
also
get what you want. Plan it out well before you start, however, or you are
going to end up having nightmares.

Roll your own? This is an option, but generally the custom provider,
provided you have it lined up and there is nothing inherently
incompatible
with the provider model, is easier to maitain.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

************** *************** *************** *****
Think outside of the box!
************** *************** *************** *****
"Coder" <mi*********@gm ail.comwrote in message
news:11******* *************** @m73g2000cwd.go oglegroups.com. ..
>I am not sure if I should use the new membership and roles feature in
ASP.NET 2.0. My user information is large, and does not fit in the
default implementation tables. I don't know if it is worth coding my
own provider.

Linking the my user table to the ASP user table might not be protected
with a transaction. I am wondering what people out there do when they
have large user information and want to use security with ASP.NET
membership and roles.

Nov 1 '06 #4
On 31 Oct 2006 09:20:49 -0800, "Coder" <mi*********@gm ail.comwrote:
>I am not sure if I should use the new membership and roles feature in
ASP.NET 2.0. My user information is large, and does not fit in the
default implementation tables. I don't know if it is worth coding my
own provider.
One way or the other you will end up coding something.
>Linking the my user table to the ASP user table might not be protected
with a transaction. I am wondering what people out there do when they
have large user information and want to use security with ASP.NET
membership and roles.
If you write your own provider you will use your own tables, there is
no requirement to use the default datastore. The custom provider will
have to be derived from the abstract MembershipProvi der type and that
public interface is rather limiting. A derived type can also have
additional methods and members that are tailored for your needs. Some
casting will be needed to access the additional functionality

MyExtendedProvi der mxp = (MyExtendedProv ider) Membership.Prov ider;
MyMembershipUse r mmu = mxp.SomeMethod( someArg);

The task is no where near as daunting as it might seem at first
glance.

regards
A.G.
Nov 2 '06 #5
Even if I code my own provider, how would you protect adding users to
roles using Roles.AddUserTo Role(...) and then Adding data to your user
table under the same transaction.

Using Transaction Scope with SQL server is the only way, but then I am
force to use DTC, which is an overkill.

If I decide not to use ASP.NET Roles, then I loose all the
functionality regarding the menu. Still lost!

Cowboy (Gregory A. Beamer) wrote:
I would bite the bullet and go with the custom provider. You can use MS's
tables as a starting point and gain the use of their framework.

BTW: We have tried, due to schedule, to bolt onto the default MS provider.
It is a royal pain in the butt when you step outside of that box. I would
advise a custom provider over the pain we have discovered. In fact, I would
go custom provider day 1, based on this experience, as someone always seems
to add functionality to membership.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Coder" <mi*********@gm ail.comwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
I agree about the profiles. I am not planning to store data there.

I think I will roll my own functions. At the end it is better to be
specific to my needs then too generic.
Cowboy (Gregory A. Beamer) wrote:
First, I would NOT store it in profile, as so many examples show.

Custom Provider? This is a great choice, as you get the framework, but
also
get what you want. Plan it out well before you start, however, or you are
going to end up having nightmares.

Roll your own? This is an option, but generally the custom provider,
provided you have it lined up and there is nothing inherently
incompatible
with the provider model, is easier to maitain.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************** *************** *************** ****
Think outside of the box!
*************** *************** *************** ****
"Coder" <mi*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
I am not sure if I should use the new membership and roles feature in
ASP.NET 2.0. My user information is large, and does not fit in the
default implementation tables. I don't know if it is worth coding my
own provider.

Linking the my user table to the ASP user table might not be protected
with a transaction. I am wondering what people out there do when they
have large user information and want to use security with ASP.NET
membership and roles.
Nov 3 '06 #6

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

Similar topics

9
2177
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...
4
1519
by: Pony Tsui | last post by:
I was install the starter kits CLUB, and created a CLUB WEB SITE, this application use the MemberInfo table in club.mdf to store the membership'data, but i can not find out where to define or configure the MemberShipProvider relative to the MemberInfo Table, it just define the connectionString in the web.config. thanks. -- Pony Tsui
2
14167
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership provider? For e.g. lets say I have a SQLMembership provider and OracleMembership provider. SQL would be my default provider. During authentication, based on the value of an additional parameter in the login screen, I need to validate against SQL or...
3
3287
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is on. I suppose that a custom provider could be used to accomplish this, is there another way?
4
4737
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....
4
1445
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...
3
2188
by: Glenn | last post by:
My current classic-ASP site has users, projects, roles and the 2.0 membership looks like a perfect fit, but I'm having trouble finding examples of how to have users that belong to different projects, and have different roles per project. The current model.. * When a user joins my site, they eventually end up joining or creating one or more projects. But, they are not required to be a member of a project to be a member of the site.
1
2380
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...
1
3017
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...
8
3781
by: Nick | last post by:
Hi there, Membership.GetNumberOfUsersOnline() works great the first time, then jumps up to the number of users registered in the system. I have tried enumerating through each user individually and checking IsOnline which done likewise, first result was 4, then 22 every time after that and it's only be debugging locally using VS. Either I'm doing something seriously wrong or this function is a
0
9844
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
10883
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
10578
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 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...
1
10631
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9409
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...
1
7813
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 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...
0
5670
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
4477
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
3
3126
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.