|
Posted by Rik on 02/06/07 19:10
J.O. Aho <user@example.net> wrote:
>>> 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']);
Yup, but it alreasy defaults to that, so it normally shouldn;t be
necessary.
>> @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.
Yup, my bad, normally I say don't crosspost. Multi posting is somewhat
more evil but luckily less frequent. Slip of the keyboard :P
--
Rik Wasmus
[Back to original message]
|