name display in log in page
Hey i have tried to do this to display the first name on the log in page but did not work, this is what I did: find the following code:
PHP:
---------
"sessionColumns" => explode($WA_Auth_Separator,"UserID".$WA_Auth_Separator."UserEmailVerified".$WA_Auth_Separator."UserEmail"),
"sessionNames" => explode($WA_Auth_Separator,"UserID".$WA_Auth_Separator."UserEmailVerified".$WA_Auth_Separator."UserEmail"),
---------
and change it to:
PHP:
---------
"sessionColumns" => explode($WA_Auth_Separator,"UserID".$WA_Auth_Separator."UserEmailVerified".$WA_Auth_Separator."UserEmail".$WA_Auth_Separator."UserFirstName"),
"sessionNames" => explode($WA_Auth_Separator,"UserID".$WA_Auth_Separator."UserEmailVerified".$WA_Auth_Separator."UserEmail".$WA_Auth_Separator."UserFirstName"),
---------
then you can use this code to show the user session:
PHP:
---------
<?php
@session_start();
echo(isset($_SESSION['UserFirstName'])?$_SESSION['UserFirstName']:"");
?>
--------- Is there another way to make this work or what am I doing wrong.