By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,694 Members | 2,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,694 IT Pros & Developers. It's quick & easy.

User Profile Data

P: n/a
When profile data is stored in ASP .NET, where is the user data persisted?
For how long is it persisted: is it session persisted or permanent (like a
cookie)?

Nov 27 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Scott,

As for the "User data" and "Profile data" you mentioned, would you provide
some more description on them? I assume that the "profile data" means the
ASP.NET 2.0 profile service's data. That data is stored per-user(depend on
membership) and can be persisted in database. I'm not sure what's the
"user data" you mentioned.

Please feel free to let me know if there is any other particular things in
your case.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Reply-To: "Scott M." <sm**@nospam.nospam>
From: "Scott M." <sm**@nospam.nospam>
Subject: User Profile Data
Date: Tue, 27 Nov 2007 12:00:35 -0500

When profile data is stored in ASP .NET, where is the user data persisted?
For how long is it persisted: is it session persisted or permanent (like a
cookie)?

Nov 28 '07 #2

P: n/a
Hi Steven,

I am indeed referring to "profile" data in ASP .NET. My use of the term
"user data" simply refers to the data stored in the profile.

Can you be more specific about exactly where this data is persisted and how?

How long does it persist? Is is session-based and expire like session
variables or is it permanent, like a cookie? You say it "depends on
membership". Does that mean I can only use this feature with users who are
in my ASP .NET membership & roles database and not with unknown and
unauthenticated visitors? You say it "can" be persisted in a database, are
there other means for persisting it?

Thanks,

-Scott

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:uz**************@TK2MSFTNGHUB02.phx.gbl...
Hi Scott,

As for the "User data" and "Profile data" you mentioned, would you provide
some more description on them? I assume that the "profile data" means the
ASP.NET 2.0 profile service's data. That data is stored per-user(depend on
membership) and can be persisted in database. I'm not sure what's the
"user data" you mentioned.

Please feel free to let me know if there is any other particular things in
your case.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>Reply-To: "Scott M." <sm**@nospam.nospam>
From: "Scott M." <sm**@nospam.nospam>
Subject: User Profile Data
Date: Tue, 27 Nov 2007 12:00:35 -0500

When profile data is stored in ASP .NET, where is the user data persisted?
For how long is it persisted: is it session persisted or permanent (like a
cookie)?

Nov 28 '07 #3

P: n/a
Thanks for your quick response Scott,

Ok. Here is a brief description on how to profile's data is persisted and
how it is associated with a certain visitor.

** The profile data is persisted in the storage based on the provider you
use. Assume that you use the Default SqlProfileProvider, then, the profile
data is persisted in the sql database.(like other membership/role
provider's data)

** Profile data only associate to a user(through a username string). This
user is determined by membership service. For example, if you use forms
authentication, each authenticated user(according to membership database)
can has his own data in profile db. Profile, in this case, profile do not
take care of cookie, it just check what's the current user. It's the forms
authentication and membership that validate and determine the current user.
and provide will provide user data depend on the current user's name.

** ASP.NET Profile also support anonymous profile, in this case, it will
generate a random userID for a certain anonymou user(unauthenticated
through forms authentication/membeship). And this id is stored through
cookie, as long as the next time it can get the ID from cookie(still in
unauthenticated mode), it can identify that anonymous user and retrieve the
correct user data from profile database.

#Profiles In ASP.NET 2.0
http://www.odetocode.com/Articles/440.aspx

Please feel free to let me know if you have questions on any specific part
of the profile.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Subject: Re: User Profile Data
Date: Tue, 27 Nov 2007 23:36:52 -0500
>
Hi Steven,

I am indeed referring to "profile" data in ASP .NET. My use of the term
"user data" simply refers to the data stored in the profile.

Can you be more specific about exactly where this data is persisted and
how?
>
How long does it persist? Is is session-based and expire like session
variables or is it permanent, like a cookie? You say it "depends on
membership". Does that mean I can only use this feature with users who
are
>in my ASP .NET membership & roles database and not with unknown and
unauthenticated visitors? You say it "can" be persisted in a database,
are
>there other means for persisting it?

Thanks,

-Scott

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:uz**************@TK2MSFTNGHUB02.phx.gbl...
>Hi Scott,

As for the "User data" and "Profile data" you mentioned, would you
provide
>some more description on them? I assume that the "profile data" means the
ASP.NET 2.0 profile service's data. That data is stored per-user(depend
on
>membership) and can be persisted in database. I'm not sure what's the
"user data" you mentioned.

Please feel free to let me know if there is any other particular things
in
>your case.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>>>Reply-To: "Scott M." <sm**@nospam.nospam>
From: "Scott M." <sm**@nospam.nospam>
Subject: User Profile Data
Date: Tue, 27 Nov 2007 12:00:35 -0500

When profile data is stored in ASP .NET, where is the user data
persisted?
>>>For how long is it persisted: is it session persisted or permanent (like
a
>>>cookie)?


Nov 28 '07 #4

P: n/a
Thanks Steven.
"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:Vq**************@TK2MSFTNGHUB02.phx.gbl...
Thanks for your quick response Scott,

Ok. Here is a brief description on how to profile's data is persisted and
how it is associated with a certain visitor.

** The profile data is persisted in the storage based on the provider you
use. Assume that you use the Default SqlProfileProvider, then, the profile
data is persisted in the sql database.(like other membership/role
provider's data)

** Profile data only associate to a user(through a username string). This
user is determined by membership service. For example, if you use forms
authentication, each authenticated user(according to membership database)
can has his own data in profile db. Profile, in this case, profile do not
take care of cookie, it just check what's the current user. It's the forms
authentication and membership that validate and determine the current
user.
and provide will provide user data depend on the current user's name.

** ASP.NET Profile also support anonymous profile, in this case, it will
generate a random userID for a certain anonymou user(unauthenticated
through forms authentication/membeship). And this id is stored through
cookie, as long as the next time it can get the ID from cookie(still in
unauthenticated mode), it can identify that anonymous user and retrieve
the
correct user data from profile database.

#Profiles In ASP.NET 2.0
http://www.odetocode.com/Articles/440.aspx

Please feel free to let me know if you have questions on any specific part
of the profile.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
>>Subject: Re: User Profile Data
Date: Tue, 27 Nov 2007 23:36:52 -0500
>>
Hi Steven,

I am indeed referring to "profile" data in ASP .NET. My use of the term
"user data" simply refers to the data stored in the profile.

Can you be more specific about exactly where this data is persisted and
how?
>>
How long does it persist? Is is session-based and expire like session
variables or is it permanent, like a cookie? You say it "depends on
membership". Does that mean I can only use this feature with users who
are
>>in my ASP .NET membership & roles database and not with unknown and
unauthenticated visitors? You say it "can" be persisted in a database,
are
>>there other means for persisting it?

Thanks,

-Scott

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:uz**************@TK2MSFTNGHUB02.phx.gbl.. .
>>Hi Scott,

As for the "User data" and "Profile data" you mentioned, would you
provide
>>some more description on them? I assume that the "profile data" means
the
ASP.NET 2.0 profile service's data. That data is stored per-user(depend
on
>>membership) and can be persisted in database. I'm not sure what's the
"user data" you mentioned.

Please feel free to let me know if there is any other particular things
in
>>your case.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
Reply-To: "Scott M." <sm**@nospam.nospam>
From: "Scott M." <sm**@nospam.nospam>
Subject: User Profile Data
Date: Tue, 27 Nov 2007 12:00:35 -0500

When profile data is stored in ASP .NET, where is the user data
persisted?
>>>>For how long is it persisted: is it session persisted or permanent (like
a
>>>>cookie)?

Nov 29 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.