PEAR Manual
Prev |  | Next

# Auth::getUsername()

Auth::getUsername() -- get the username of the current authentication session

## Synopsis

``string Auth::getUsername` ()`

## Description

Using this method, one can retrieve the username (often also referred to as the "user id") of the user of the current authentication session.

## Note

This function can not be called statically.

Prev | Home | Next
Auth::getStatus() | Up | Auth::sessionValidThru()