More in this section

Forums / Developing with Sitefinity / Capture current user ID

Capture current user ID

2 posts, 0 answered
  1. Sharon
    Sharon avatar
    39 posts
    14 Jun 2011
    09 Aug 2012
    Link to this post
    We have some pages the user needs to login to access. I need to write a new control that will capture the user ID of a person who downloads a certain PDF from one of those pages.

    Can someone point me to any code or the call I need to use to capture the currently logged in user.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    09 Aug 2012
    Link to this post

    You can use UserManager.GetCurrentUser() or UserManager.GetCurrentUserName(). Then get the provider user key.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered