Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Storage of Profile ValuesStorage of Profile Values
Previous
 
Next
New Post
7/27/2011 8:47 AM
 
Hi,

I'm new to DNN and have just implemented a custom authentication module which authenticates against an existing mysql database and quietly creates a new user on the dnn MS 2005 db, transferring necessary data in the process. I have found that I can store a variety of values using the Personalization method:

DotNetNuke.Services.Personalization.Personalization.SetProfile("container", "key", "value")

It works fine and I can retrieve the data again with the corresponding GetProfile() method but I cannot find the data anywhere in the database (in the Profile or UserProfile table for example). Could anyone tell me how this method works and where the data is persisted. I am using DNN 6.00.00.

thanks

Tiernan

Tiernan


 
New Post
7/27/2011 9:30 AM
 
data will be stored serialized in userProfile data, according to property definitions in profilePropertyDefinitions table.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/27/2011 1:34 PM
 
Hi Sebastian,

many thanks for your swift reply.

 I have done some further research and have found that the data is being persisted in a cookie.

 The reason I think is because DNN certain aspects of the user state are not updated after calling the UserController.UserLogin(...) method. I verified this by checking the UserController.GetCurrentUserInfo() which returned a null user directly after calling the UserLogin(...) method.

This agrees with SetProfile(...) behaviour which sets a cookie rather than persisting to the database when the current user is a null user (user id = -1).

Once the user is logged in and redirected to another page, SetProfile(...) works as expected, persisting data to the Profile table.

I suppose my question now is why the current user is not updated directly after  the call to UserController.UserLogin(...)  but seems to require a page reload to update its state to reflect the details for the newly logged in user?
Submit

 
 






 
New Post
7/27/2011 7:04 PM
 
profile properties need to be persisted in the database and to be loaded from it instead of the cache - I assume, page reload is necessary to clear cache.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Storage of Profile ValuesStorage of Profile Values


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out