This function initializes an authentication session using the supported methods. These are, in order of preference: Digest-MD5,CRAMMD5,LOGIN, and PLAIN.
Parameter
string $uid
The userid to authenticate as.
string $pwd
The password to authenticate with.
string $method
The requested authentication method.If none is specified, the best supported method will be used.
Return value
returns Returns a PEAR_Error with an error message on any kind of failure, or true on success.
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?