Change record status: 
Project: 
Introduced in branch: 
11.3,x
Introduced in version: 
11.3.0
Description: 

The UserSession::name property visibility has been changed to protected.

Custom and contrib code will need to be updated to use the getAccountName() method instead.

Before:

$userName = $user->name;

After:

$userName = $user->getAccountName();
Impacts: 
Module developers