Re: Followup to session question / scope of session
| From: | Kevin Stone | Date: | Fri, 19 Jul 2002 18:01:36 +0000 |
| Subject: | Re: Followup to session question / scope of session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108549@lists.php.net to get a copy of this message | ||
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
>