On Mon, Oct 13, 2008 at 6:04 PM, Roan Kattouw <[EMAIL PROTECTED]> 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
> [email protected]
> 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.

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to