Kentico 8 CMSContext.CurrentUser Equivalent

Joshua Adams asked on May 5, 2014 08:54

What is the version 8 equivalent to CMSContext.CurrentUser?

Correct Answer

Jakub Kadlubiec answered on May 5, 2014 09:18

Hi, its MembershipContext.AuthenticatedUser.

3 votesVote for this answer Unmark Correct answer

Recent Answers


Joshua Adams answered on May 5, 2014 09:23

Thanks Jakub!

0 votesVote for this answer Mark as a Correct answer

Jakub Oravec answered on May 5, 2014 09:26

Hi, list of API changes is available on devnet: http://devnet.kentico.com/documentation/api-changes.

0 votesVote for this answer Mark as a Correct answer

Fred Hartzler answered on October 8, 2014 19:27

The link to the list of API changes is not helpfull when the Change reports: "There is no resolution for this kind of issue yet. Please contact support@kentico.com for more information."

0 votesVote for this answer Mark as a Correct answer

Bill Gross answered on February 18, 2015 16:12 (last edited on February 18, 2015 16:13)

Thanks!

0 votesVote for this answer Mark as a Correct answer

Kunal Chawla answered on February 26, 2016 09:21

I set the MembershipContext.AuthenticatedUser to the user who logs into my website. But when I come to check properties of this user (through MembershipContext.AuthenticatedUser.TryGetProperty("ClientID", out UserClientIDValue);), I see that AuthenticatedUser gets changes to anynonymous user by itself.

Please help, how to correctly set the currentUser.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.