I saw this on php.net:
To make the cookie available on all subdomains of example.com then
you'd set it to '.example.com'. The . is not required but makes it
compatible with more browsers. Setting it to www.example.com will
make the cookie only available in the www subdomain. Refer to tail
matching in the spec for details.
Is that how your doing it but it is not working that way?
Sincerely,
Mike
--
Mike Brandonisio * Web Hosting
Tech One Illustration * Internet Marketing
tel (630) 759-9283 * e-Commerce
[EMAIL PROTECTED] * http://www.jikometrix.net
JIKOmetrix - Reliable web hosting
On May 13, 2006, at 7:40 AM, Gordon Stewart wrote:
> http://php.mirrors.ilisys.com.au/manual/en/function.setcookie.php
>
> Hi, there im following the Cookies site above - & also trying to use
> the $_SESSION codes...
>
> - Basically, I want to create a session and/or cookie - that will be
> available to ANY subdomain on my own site......
>
> However - I'm just thinking - that this is the problem...
>
> (examples)
>
> http://subdomain1.domain.com/
> has a "root" directory of
>
> /www/u/username/subdomain1/htdocs/
>
> http://subdomain2.domain.com/
> has a "root" directory of
>
> /www/u/username/subdomain2/htdocs/
>
> http://www.domain.com/
> has a "root" directory of
>
> /www/u/username/htdocs/
>
> etc....
>
>
> is this "Root directory" the cause of my problem ? & is there a way we
> can use sessions and/or cookies - accross all the subdomains in my
> site ??
>
>
> PS :- I CAN use a MYSQL database - But i'll rather not do a query -
> each time a page is refreshed - & record passwords / Usernames in the
> URL - if they go out of one subdomain, & into another subdomain...
>
> --
> G
> Yahoo Archives by email = Yes
> http://groups.kwister.com/owners.php#add
> NZ community groups - [EMAIL PROTECTED]
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
> ~-->
> You can search right from your browser? It's easy and it's free.
> See how.
> http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/HKFolB/TM
> --------------------------------------------------------------------
> ~->
>
> Community email addresses:
> Post message: [email protected]
> Subscribe: [EMAIL PROTECTED]
> Unsubscribe: [EMAIL PROTECTED]
> List owner: [EMAIL PROTECTED]
>
> Shortcut URL to this page:
> http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
SPONSORED LINKS
| Php mysql | Job postings |
YAHOO! GROUPS LINKS
- Visit your group "php-list" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
