Re: Session ?
| From: | Jim Giner | Date: | Fri, 07 Dec 2012 19:54:28 +0000 |
| Subject: | Re: Session ? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319813@lists.php.net to get a copy of this message | ||
On 12/7/2012 2:41 PM, Daniel Brown wrote:
On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner <jim.giner@albanyhandball.com> wrote:On 12/7/2012 2:36 PM, Daniel Brown wrote:On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner <jim.giner@albanyhandball.com> wrote:Yes - they are sub-domains of my main one.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?<?php ini_set('session.cookie_domain','.example.com'); ?>The preceding dot before the SLD allow the session cookie to beaccessible on *.example.com. What if my sub-domain names are not in the form of 'a.domain.com' and 'b.domain.com'.