In kentico 9 application, created user from code and assigned role and added into current site.
User is successfully created in kentico database and added into site, and called kentico API to authenticate newly created user and its returning true. After that I am redirecting end user on site home page and on master template used current user webpart which is not reflecting to show user as logged in.
Please suggest.
I suspect you are not authenticating the user properly. Try using following code to authenticate user:
Note: Depending on where you use this code, you might need to do a redirect using