curl-and-php
Re: FW: PHP + cURL + session id
Date: Thu, 27 Apr 2006 00:08:37 +0200
Thanks for reply.
I am not sure if you are right about $_SESSION vars and keeping them on
clients' side. As far as I know the only information kept on the clients'
side is PHPSESSID in the cookie. However, my knowledge about it does not
help me at all :).
I also checked the address you had suggested but unfortunately I did not
find any solution.
Problem is that I am not able to start session with already active session
id using cURL because when I send PHPSESSID in a cookie header (as
web-browser does) or when append PHPSESSID to the URL as a GET parameter the
script hangs. While, when I do not send any info about session the third
script starts new session.
Any way, thanks again for your time and if you had any other ideas let me
know.
Kind regards,
Luke
2006/4/26, Chris Gralike <Chris.Gralike_at_amis.nl>:
>
> My excuse. Noticed that the "daily send update" removes a huge lumb of
> information. My bad...
>
> As followup on your thread, the main problem is that te information that
> is returned by Curl is parsed content. U might be able
> To send a "cookie" in the request header, but then u must somehow catch
> this with the $_COOKIE var.
>
> This is because the $_SESSION vars are stored at the client side as far
> as i know. This means that the "server" side wich initiates the "curl"
> command isnt aware of these $_SESSION vars and will not be able to
> restore them with a cookie, unless they are stored in a database, where
> the row id send with the cookies is the corresponding id.
>
> please take a look at this to get a better idea ;)
>
> http://www.rawdata.net/developer/php_examples/forms/getFormData.inc.php
>
>
> Met vriendelijke groet,
> Chris Gralike
>
> AMIS Services BV
> Edisonbaan 15
> 3439 MN NIEUWEGEIN
> Postbus 24
> 3430 AA NIEUWEGEIN
>
> T: 030-601-6079
> F: 030-601-6001
> M: Chris.Gralike_at_AMIS.nl
> W: http://www.AMIS.nl
>
>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-04-27