Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #10660

Strange url session behaviour after upgrade to 4.3

From Tobiah <toby@tobiah.org>
Newsgroups comp.lang.php
Subject Strange url session behaviour after upgrade to 4.3
Message-ID <2k7Ut.171612$907.130622@fx17.iad> (permalink)
Organization TeraNews.com
Date 2013-08-30 13:33 -0700

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Strange url session behaviour after upgrade to 4.3 Tobiah <toby@tobiah.org> - 2013-08-30 13:33 -0700
  Re: Strange url session behaviour after upgrade to 4.3 Jerry Stuckle <jstucklex@attglobal.net> - 2013-08-30 20:28 -0400
    Re: Strange url session behaviour after upgrade to 4.3 Tobiah <toby@tobiah.org> - 2013-09-03 08:58 -0700
      Re: Strange url session behaviour after upgrade to 4.3 Jerry Stuckle <jstucklex@attglobal.net> - 2013-09-03 12:59 -0400
        Re: Strange url session behaviour after upgrade to 4.3 Tobiah <toby@tobiah.org> - 2013-09-03 11:07 -0700
          Re: Strange url session behaviour after upgrade to 4.3 Christoph Michael Becker <cmbecker69@arcor.de> - 2013-09-03 20:38 +0200
            Re: Strange url session behaviour after upgrade to 4.3 Tobiah <toby@tobiah.org> - 2013-09-04 10:38 -0700
              Strange url session behaviour after upgrade to 5.3 (was: Strange url session behaviour after upgrade to 4.3) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-06 00:23 +0200
          Re: Strange url session behaviour after upgrade to 4.3 Jerry Stuckle <jstucklex@attglobal.net> - 2013-09-03 14:52 -0400
  Re: Strange url session behaviour after upgrade to 4.3 Christoph Michael Becker <cmbecker69@arcor.de> - 2013-08-31 19:58 +0200
  Re: Strange url session behaviour after upgrade to 4.3 Luuk <luuk@invalid.lan> - 2013-08-31 20:47 +0200

csiph-web