On Fri, Dec 7, 2012 at 3:04 PM, Jim Giner <jim.gi...@albanyhandball.com> wrote:
> OK - now that I've messed us all up, help me to understand your proposed
> solution.  I added the ini-set line to my first script.  Then I called my
> second one and still had the same problem with a missing session var.  Is
> there a corresponding line I need in the 'called' script?  And does it
> matter where this line is place within the script?

    From your response to Sebastian, I'm not sure it will work.  They
need to be subdomains of the same domain; different domains won't
work.  However, proceeding with the presumption that the subdomains
are under the same SLD (e.g. - apple.example.com and
orange.example.com), this should work:

// apple.example.com
$_SESSION['foo'] = 'bar';


// orange.example.com
echo isset($_SESSION['foo']) ? $_SESSION['foo'] : 'Session failed to transfer.';

</Daniel P. Brown>
Network Infrastructure Manager

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to