Re: Session ?
| From: | Jim Giner | Date: | Fri, 07 Dec 2012 20:00:28 +0000 |
| Subject: | Re: Session ? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319816@lists.php.net to get a copy of this message | ||
On 12/7/2012 2:58 PM, Sebastian Krebs wrote:
2012/12/7 Jim Giner <jim.giner@albanyhandball.com>On 12/7/2012 2:41 PM, Daniel Brown wrote:What do you mean? Subdomains are always in the form "*.example.com"On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner <jim.giner@albanyhandball.com> wrote:b.domain.com'.On 12/7/2012 2:36 PM, Daniel Brown wrote:On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner <jim.giner@albanyhandball.comwrote: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 beaccessible on *.example.com. What if my sub-domain names are not in the form of 'a.domain.com' and '-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpMy bad - I was referencing the "add-on domain" name which is not. Yes - there are subs in the correct format which I forgot about.