Hi guys.
I have downloaded php sdk right now and found the bug in lib/windowslivelogin.php
on line 90.

private function setFlags()
$this->_usePersistentCookie = false;
90 if (preg_match('/^\d+$/', $flags)) {
$this->_usePersistentCookie = (($flags % 2) == 1);

The parameter $flags is not passed into the function.

I think it should be:
private function setFlags($flags).

$this->_usePersistentCookie is always false.

Re: A bug in PHP SDK

Jorgen Thelin - MSFT

Yes, as you suggest this should say:

Code Snippet

private function setFlags($flags)

Thanks for reporting this bug