It depends whether you want the username, or the user's name....
If you just want the user's name, as in the firstname of the customer, then you can use this code:
Code:
if (isset($_SESSION['customer_id'])) { // check the customer is actually logged in
echo $_SESSION['customer_first_name'] .' ' . $_SESSION['customer_last_name']; // show the name variables you want to use
}
If you want the username (customers_nickname), then you would need to use the customer_id and query the database to get the customer field.
Absolute