Re: Strange url session behaviour after upgrade to 4.3 [message #182712 is a reply to message #182706] |
Sat, 31 August 2013 00:28 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 8/30/2013 4:33 PM, Tobiah wrote:
> I have a page that needs to get another page on the fly, using
> the same session. I figured out how to stop my session and set
> the cookie on the CURL handler, and everything was cool. The
> curled page had my same session available as the calling page.
> Life was good.
>
> Now something has changed after upgrading from 5.2.4 to 5.3.10.
> My session was no longer available on the curled page. What's
> strange is that the PHPSESSID cookie was still being set, and
> hit had the correct value.
>
> Here is the weirdest part. If I do this:
>
> session_id($_COOKIE['PHPSESSID']);
> session_start();
>
> The session is there! But why isn't php taking
> the cookie as the id all by itself? Regular
> pages (not curled) all work as before. All of
> our websites work fine on the new version, except
> for this one curl call. I could update 100's of
> websites to fix them with the added lines, but
> I'd really rather find out why the curled page
> is not taking the session_id from the PHPSESSID
> cookie.
>
> Thanks!
>
> Toby
I don't know what would have changed in the PHP update. But you haven't
shown us the failing (cURL) code - so anything would be a guess.
Are you trying to access a PHP script on a different server (or domain)?
Or what are you trying to do specifically?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|