private static function rememberMe(array $authConfig, $user, $number_of_days = 14)
    {
        $key = static::getFields($authConfig, true);
        $token = encrypt($user->$key);

        setcookie('remember_token', $token, time() + (86400 * $number_of_days));
    }
private static function rememberMe(array $authConfig, $user, $number_of_days = 14)
    {
        $key = static::getFields($authConfig, true);
        $token = encrypt($user->$key);

        setcookie('remember_token', $token, time() + (86400 * $number_of_days));
    }
private static function rememberMe ( array $ authConfig , $ user , $ number_of_days = 14 ) { $ key = static :: getFields ( $ authConfig , true ) ; $ token = encrypt ( $ user -> $ key ) ; setcookie ( 'remember_token' , $ token , time ( ) + ( 86400 * $ number_of_days ) ) ; }
Remember the user for X days.

@param array $authConfig
@param $user
@param $number_of_days

@throws Exception

@return void
Remember the user for X days .