473,385 Members | 1,720 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,385 software developers and data experts.

ASP.NET 2.0 Personalization

How to use user profile within a web farm environment?
Nov 19 '05 #1
5 1401
The personalisation features in ASP.NET 2.0 are all provider driven as to
where to store data. By default, it will be stored in the Ap_Data directory
as a SqlExpress data file. This can be changed to use a standard SQL Server
provider (provided with ASP.NET V2) and therefore access a SQL Server
independent of the web servers. Obviously this database is shared between
servers in a web farm, so it should work fine in a web farm scenario. Use
the ASP.NET Configuration tool is VS.NET to change providers.

--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com
"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:eM*************@TK2MSFTNGP14.phx.gbl...
How to use user profile within a web farm environment?

Nov 19 '05 #2
Thanks for your reply.
Since the db should be shared between all servers within a web farm, does it
mean that
each time when the user requests a user profile property, the web servers
need to retrieve
the profile data from db again?

By the way, the web parts control works with the personalization mechanism,
is it possible
to read the web parts settings from db then store to another medium? (like
cookie) to reduce
the impact of frequent db access. Those settings is plain text or something
else in db?
"Paul Glavich [MVP ASP.NET]" <gl**@aspalliance.com-NOSPAM> ¦b¶l¥ó
news:eU**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
The personalisation features in ASP.NET 2.0 are all provider driven as to
where to store data. By default, it will be stored in the Ap_Data directory as a SqlExpress data file. This can be changed to use a standard SQL Server provider (provided with ASP.NET V2) and therefore access a SQL Server
independent of the web servers. Obviously this database is shared between
servers in a web farm, so it should work fine in a web farm scenario. Use
the ASP.NET Configuration tool is VS.NET to change providers.

--
- Paul Glavich
MVP ASP.NET "RedHair" <re*****@ms40.url.com.tw> wrote in message
news:eM*************@TK2MSFTNGP14.phx.gbl...
How to use user profile within a web farm environment?


Nov 19 '05 #3
>> > each time when the user requests a user profile property, the web
> servers need to retrieve
the profile data from db again?
Yes, this is correct.
> to read the web parts settings from db then store to another medium?
> (like

cookie) to reduce
the impact of frequent db access. Those settings is plain text or
something
else in db?


Certainly possible, but I have not done this. Also, you would have to
account for cookie restrictions on the size and types of information that
can be stored. Again its possible, but probably a little tricky. Bets bet is
to create your own provider for this.
--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com
"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl... Thanks for your reply.
Since the db should be shared between all servers within a web farm, does
it
mean that
each time when the user requests a user profile property, the web servers
need to retrieve
the profile data from db again?

By the way, the web parts control works with the personalization
mechanism,
is it possible
to read the web parts settings from db then store to another medium? (like
cookie) to reduce
the impact of frequent db access. Those settings is plain text or
something
else in db?
"Paul Glavich [MVP ASP.NET]" <gl**@aspalliance.com-NOSPAM> ¦b¶l¥ó
news:eU**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
The personalisation features in ASP.NET 2.0 are all provider driven as to
where to store data. By default, it will be stored in the Ap_Data

directory
as a SqlExpress data file. This can be changed to use a standard SQL

Server
provider (provided with ASP.NET V2) and therefore access a SQL Server
independent of the web servers. Obviously this database is shared between
servers in a web farm, so it should work fine in a web farm scenario. Use
the ASP.NET Configuration tool is VS.NET to change providers.

--
- Paul Glavich
MVP ASP.NET

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:eM*************@TK2MSFTNGP14.phx.gbl...
> How to use user profile within a web farm environment?
>
>



Nov 19 '05 #4
>> the web servers
need to retrieve
the profile data from db again?
Yes, and this will happen on demand anyway.
to read the web parts settings from db then store to another medium? (like
cookie) to reduce
I guess you could do it manually, or using a different provider, but it
would get kind if hairy in that you would need to make sure changes are
propagated back to the original source at some point. If stored in the
cookie (for example) you would have to not only cater for a cookies
limitations, but also save that changed info back to the DB later. Would be
tricky.

--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com
"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl... Thanks for your reply.
Since the db should be shared between all servers within a web farm, does
it
mean that
each time when the user requests a user profile property, the web servers
need to retrieve
the profile data from db again?

By the way, the web parts control works with the personalization
mechanism,
is it possible
to read the web parts settings from db then store to another medium? (like
cookie) to reduce
the impact of frequent db access. Those settings is plain text or
something
else in db?
"Paul Glavich [MVP ASP.NET]" <gl**@aspalliance.com-NOSPAM> ¦b¶l¥ó
news:eU**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
The personalisation features in ASP.NET 2.0 are all provider driven as to
where to store data. By default, it will be stored in the Ap_Data

directory
as a SqlExpress data file. This can be changed to use a standard SQL

Server
provider (provided with ASP.NET V2) and therefore access a SQL Server
independent of the web servers. Obviously this database is shared between
servers in a web farm, so it should work fine in a web farm scenario. Use
the ASP.NET Configuration tool is VS.NET to change providers.

--
- Paul Glavich
MVP ASP.NET

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:eM*************@TK2MSFTNGP14.phx.gbl...
> How to use user profile within a web farm environment?
>
>



Nov 19 '05 #5
guess you could do it manually, or using a different provider, but it
would get kind if hairy in that you would need to make sure changes are
propagated back to the original source at some point. If stored in the
cookie (for example) you would have to not only cater for a cookies
limitations, but also save that changed info back to the DB later. Would be
tricky.

"Paul Glavich [MVP ASP.NET]" <gl**@aspalliance.com-NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the web servers need to retrieve
the profile data from db again?


Yes, and this will happen on demand anyway.
to read the web parts settings from db then store to another medium? (like cookie) to reduce


I guess you could do it manually, or using a different provider, but it
would get kind if hairy in that you would need to make sure changes are
propagated back to the original source at some point. If stored in the
cookie (for example) you would have to not only cater for a cookies
limitations, but also save that changed info back to the DB later. Would

be tricky.

--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com
"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl...
Thanks for your reply.
Since the db should be shared between all servers within a web farm, does it
mean that
each time when the user requests a user profile property, the web servers need to retrieve
the profile data from db again?

By the way, the web parts control works with the personalization
mechanism,
is it possible
to read the web parts settings from db then store to another medium? (like cookie) to reduce
the impact of frequent db access. Those settings is plain text or
something
else in db?
"Paul Glavich [MVP ASP.NET]" <gl**@aspalliance.com-NOSPAM> ¦b¶l¥ó
news:eU**************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
The personalisation features in ASP.NET 2.0 are all provider driven as to where to store data. By default, it will be stored in the Ap_Data

directory
as a SqlExpress data file. This can be changed to use a standard SQL

Server
provider (provided with ASP.NET V2) and therefore access a SQL Server
independent of the web servers. Obviously this database is shared between servers in a web farm, so it should work fine in a web farm scenario. Use the ASP.NET Configuration tool is VS.NET to change providers.

--
- Paul Glavich
MVP ASP.NET

"RedHair" <re*****@ms40.url.com.tw> wrote in message
news:eM*************@TK2MSFTNGP14.phx.gbl...
> How to use user profile within a web farm environment?
>
>




__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Nov 19 '05 #6

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

Similar topics

0
by: Danny Tuppeny | last post by:
Hi all, I'm after some advice... I'm building a website which will have a login etc.. The Personalization in asp.net 2 stuff looks like it'll save me some time (login controls etc.), however,...
9
by: SlimFlem | last post by:
Is this possible? My entire web site is being built dynamically using WebPart's and a lot of it will be anonymous. How do I load these parts dynamically using WebPartManager.AddWebPart() and not...
0
by: Anonieko | last post by:
Scenario: Web Parts features (like design mode) require the user to be authenticated and registered. But what if you don't want the users to go through registration but still enable...
2
by: bradgatewood | last post by:
I am in the process of developing a highly customizable application and I'm looking for a way to allow personalization by role. This is different than shared scope in the fact that I want to allow...
1
by: Ya Ya | last post by:
I am using the personalization feature in asp.net 2.0 I am storing the phone number for each user. When a certain user enters his phone number I would like to check if another user already...
0
by: Kent Liu | last post by:
In the VB6, we could using SaveSetting/GetSetting to store the information and get them for personalization of windows applications. But all these need the programmer to write code to save & get &...
0
by: 68muscle | last post by:
I am working with the NET 2.0 portal framework. To use the portal framework requires that personalization be enabled. I followed the chapter on personalization in my Professional ASP.NET 2.0...
3
by: Electrified Research | last post by:
So I've been playing with WebParts. Very cool stuff. The personalization scope has "Shared" and "User". "Shared" allows for an admin to customize a page and how other users see that page. ...
2
by: Roger23 | last post by:
I have a requirement where I need to remove or disable the entire personalization feature of my web application. I am not allowed to have a SQL express on my web server and I am not allowed to have...
0
by: Bei | last post by:
Now I'm facing a requirement that every users can personalize their own web parts, and there is a administrator who has rights 1, to publish a 'personalization' of a single web part to all users in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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,...

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.