Page_Rendering Server Event

Hi
Is there any difference in V2025 when accessing global functions?
i am in Page_Rendering and trying to use CurrentUserID() or CurrentUserInfo(“FirstName”) etc but not returning anything CurrentUserName() and CurrentUserLevel() works.
worked in in v2024

thanks.

I cannot reproduce the issue. Mine is working fine in v2025.

You may test the following from demo2025 project:

  1. Add the following code into your Global Code server event:
global $MyCurrentUserName;
  1. Add the following code into your Page_Rendering server event:
global $MyCurrentUserName;
$MyCurrentUserName =  CurrentUserInfo("FirstName") . " " . CurrentUserInfo("LastName") . " - " . CurrentUserName();
  1. Add the following code into News.php custom file:
<?php
	global $MyCurrentUserName;
	if (IsLoggedIn() && !IsAdmin())
		echo "My Current UserName: " . $MyCurrentUserName;
?>
  1. Re-generate ALL the script files, and then from the generated web application, make sure you have already logged in by using nancy username, and then go to News menu, you will see the following result:
My Current UserName: Nancy Davolio - nancy

Now, back to your case, make sure you have already had FirstName field in your users table.

You may also post your code in that Page_Rendering and any other related server event (if any) for discussion.