RE: [PHP] Followup to session question / scope of session
| From: | Chad Day | Date: | Fri, 19 Jul 2002 17:39:57 +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-108545@lists.php.net to get a copy of this message | ||
Anyone? I'm looking on google for help and found 2 people asking similar
questions, but both got no replies. Is it not possible to pass session data
across subdomains? If so, what workaround can I use to keep the user
authenticated? Do I just pass the session ID in the URL? That kind of
sucks. :(
Thanks,
Chad
-----Original Message-----
From: Chad Day [mailto:cday@atpco.com]
Sent: Friday, July 19, 2002 11:46 AM
To: php-general@lists.php.net
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