> Hi,
>
> 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?
Hmm I hate computers...
I followed the php website above - 3-4 hours ago -
http://php.net/setcookie
& tried :-
setcookie("TestCookie", $value, time()+3600, "/", ".example.com", 0);
or
setcookie("TestCookie", $value, time()+3600, "", ".example.com", 0);
or
setcookie("TestCookie", $value, time()+3600, , ".example.com", 0);
etc etc... & other combinations (Replacing my own domain name)
Nothing worked...
Ive figured it out now - These lines do work :-
$t=time();
$t1=(time()+3600);
setcookie('email', $t,$t1,"/",".domain.com",0);
I wonder if it doesnt like to do calculations within the setcookie command ??
(i'll change the timing - to a longer time (3600 is too short).... )
--
G
Yahoo Archives by email = Yes
http://groups.kwister.com/owners.php#add
NZ community groups - [EMAIL PROTECTED]
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.
