On Mon, Oct 13, 2008 at 6:04 PM, Roan Kattouw roan.kattouw@home.nl wrote:
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)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
The fact that session data is not stored within WebRequest is a problem which I also ran into when rewritting the upload code. Need to do something about it.