Re: Session ?
| From: | Sebastian Krebs | Date: | Fri, 07 Dec 2012 19:58:10 +0000 |
| Subject: | Re: Session ? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319814@lists.php.net to get a copy of this message | ||
2012/12/7 Jim Giner <jim.giner@albanyhandball.com>
> 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:
>>>>
>>>>>
>>>>> 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'.
What do you mean? Subdomains are always in the form "*.example.com"
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
github.com/KingCrunch