Re: [SOAP] PEAR::SOAP and Sessions?
| From: | Christian Wenz | Date: | Sun, 07 Dec 2003 17:19:12 +0000 |
| Subject: | Re: [SOAP] PEAR::SOAP and Sessions? | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1211@lists.php.net to get a copy of this message | ||
Hi,
Jens Weibler wrote:
> But it seems that I can't save the login-data from access to access with
> php-sessions. I don't want to use HTTP-Auth. Do I have to submit
> user+password-hash each time I call a remote-function?
yes, as the client is most certainly not able to save cookies. However
instead of submitting username/password each time, you should write a login
function that does the login and returns a kind of session token. This token
then is always sent to the web service.
<shameless plug>more about this, including a login example, can be found in
the (German) book "Web Services mit PHP" (
http://www.galileocomputing.de/katalog/buecher/titel/gp/titelID-624
)
:-)</shameless plug>
Regards
Christian