Re: Followup to session question / scope of session
| From: | Scott Hurring | Date: | Fri, 19 Jul 2002 21:14:27 +0000 |
| Subject: | Re: Followup to session question / scope of session | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108577@lists.php.net to get a copy of this message | ||
If you created a session on "www", how would you know
what session to load on the non-www side?
to get sessions working across multiple domains, you must
either muck about with the cookie's domain name or actually
pass the SID in the query.
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Erik Price" <erikprice@mac.com> wrote in message
news:DCBC7D24-9B47-11D6-AE60-00039351FE6A@mac.com...
>
> On Friday, July 19, 2002, at 02:05 PM, Chad Day wrote:
>
> > It's still there, yes, but when I go to my.mydomain.com from
> > www.mydomain.com, the session_start() at the top of the script starts
> > a new
> > session rather than picking up on the old www.mydomain.com session. I
> > don't
> > know how to tell it to look at the old session and continue that one.
>
> Try naming your session and using session_name() to force the
> session_start() call to look first for an original session. Read up on
> session_start() for more info.
>
>
>
> Erik
>