Dian schreef:
Thanks for the fast reply! But suppose the user just sends a serialized object containing the cookie-data , i.e. the HTTP headers doesn't include the cookies. How can I manage to set the cookies in the system after deserializing them from the XML of the SOAP message?
It's kind of hacky, but it seems there's no clean way to do it. There should be no scary side-effects AFAICT.
$_SESSION['wsUserId'] = $userid; $_SESSION['wsUserName'] = $username; $_SESSION['wsToken'] = $token;
global $wgUser; $wgUser = User::newFromSession();
Roan Kattouw (Catrope)