RE: [PHP] Followup to session question / scope of session
| From: | Chad Day | Date: | Fri, 19 Jul 2002 18:05:18 +0000 |
| Subject: | RE: [PHP] Followup to session question / scope of session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108550@lists.php.net to get a copy of this message | ||
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.
Chad
-----Original Message-----
From: Kevin Stone [mailto:kevin@helpelf.com]
Sent: Friday, July 19, 2002 2:02 PM
To: Chad Day; php-general@lists.php.net
Subject: Re: [PHP] Followup to session question / scope of session
It's not a matter of scope, per se, but I believe that as long as you remain
on the same server the session file will always be available.
-Kevin
----- Original Message -----
From: "Chad Day" <cday@atpco.com>
To: <php-general@lists.php.net>
Sent: Friday, July 19, 2002 9:46 AM
Subject: [PHP] Followup to session question / scope of session
> If I start a session at www.mydomain.com and want to register a session
> variable to keep track of the user for authentication purposes, is there a
> way I can use that session variable on other sites, such as
my.mydomain.com
> and mydomain.com or anythingelse.mydomain.com? It seems to only be valid
> for the www. domain name, and I need it to work on all of *.mydomain.com.
>
> I could set a cookie with a value, but I don't want to risk spoofing of
> cookies, etc.. I'd much rather keep a registered session variable which I
> can check to see if it exists, and use that to authenticate.
>
> Thanks,
> Chad
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php