PMA\libraries\plugins\auth\AuthenticationCookie::storeUsernameCookie PHP Method

storeUsernameCookie() public method

Stores username in a cookie.
public storeUsernameCookie ( string $username ) : void
$username string User name
return void
    public function storeUsernameCookie($username)
    {
        // Name and password cookies need to be refreshed each time
        // Duration = one month for username
        $GLOBALS['PMA_Config']->setCookie('pmaUser-' . $GLOBALS['server'], $this->cookieEncrypt($username, $this->_getEncryptionSecret()));
    }