|
Posted by J.O. Aho on 02/06/07 19:04
Rik wrote:
> Tom <tom@to.com> wrote:
>
>> On Tue, 6 Feb 2007 13:21:07 -0500, hman wrote...
>>>
>>> The DNS is working correctly according to the client where this is
>>> happening.
>>>
>>> What should I use for the full domain in this case. I can't find a good
>>> explanation on use of the domain when setting cookies.
>>>
>>> I need to cookies to work for SQL1, 10.1.1.100 AND for
>>> statuspage.cosite.com.
>>>
>>> Thanks,
>>> Harry Hambrick
>>
>>
>> From my understanding a cookie can only be generated from a server in its
>> domain, since there would be problems with outside sides trying to
>> forge cookies
>> for another domain. You might not be able to use "SQL1, 10.1.1.100 and
>> statuspage.cosite.com." in one cookie and may need to generate three
>> separate
>> cookies.
You can always get the domain that the user has used to request the page, and
therefore be able to send a correct domain with the cookie, no needs of more
than one.
setcookie(... ,$_SERVER['SERVER_NAME']);
> @OP Pffffft... crossposting.....evil.. mmkay?
No, he didn't crosspost, this thread is only posted to alt.php, he did a
multipost if you found a similar post/thread at comp.lang.php.
--
//Aho
[Back to original message]
|