Re: Session ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/7/2012 2:41 PM, Daniel Brown wrote:
On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx> wrote:
On 12/7/2012 2:36 PM, Daniel Brown wrote:

On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner <jim.giner@xxxxxxxxxxxxxxxxxx>
wrote:

Something new for me - working with scripts on two of my sub-domains.

I want to call script 2 in my B domain from script 1 in my A domain.

It appears that the session vars established in script 1 do not show up
in
script 2.  Is that because the domain name is different?  Is this where
one
must grab the session id and use it in another script in order to retain
the
original session and its vars? If this is so, can someone elaborate on
the
capture of the session id process?


      Are both domains on the same physical (or virtual) server?

Yes - they are sub-domains of my main one.

     <?php ini_set('session.cookie_domain','.example.com'); ?>

     The preceding dot before the SLD allow the session cookie to be
accessible on *.example.com.

What if my sub-domain names are not in the form of 'a.domain.com' and 'b.domain.com'.


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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux