SESSION_USER() is a synonym for USER(). : SESSION_USER « Information Functions « MySQL Tutorial






mysql>
mysql> select SESSION_USER();
+----------------+
| SESSION_USER() |
+----------------+
| root@localhost |
+----------------+
1 row in set (0.00 sec)








20.13.SESSION_USER
20.13.1.SESSION_USER() is a synonym for USER().