Reply to Re: PHP serving blank pages

Your name:

Reply:


Posted by Tom on 02/06/07 18:49

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.

Tom
--
Newsguy.com
75+ days of Binary and Text Retention!
Higher levels of article completion!
Broader coverage of newsgroups


>
>"J.O. Aho" <user@example.net> wrote in message
>news:52ru59F1okgg0U1@mid.individual.net...
>> hman wrote:
>>
>>
>>> If you use a URL of http://SQL1/statuspage/userlogin.php - everything
>>> works fine.
>>> If you use a URL of http://10.1.1.100/statuspage/userlogin.php -
>>> everything works fine.
>>> If you use a URL of http://statuspage.cosite.com - They get the blank
>>> page after the login page.
>>
>> Check so that your DNS is working correctly.
>>
>>
>>> I'm thinking it has something to do with domains and cookies but I'm not
>>> sure.
>>>
>>> My cookies are set as:
>>>
>>> setcookie("UserKey", $UK,$expiretime);
>>>
>>> setcookie("PHPSESSID",$_COOKIE["PHPSESSID"],$expiretime);
>>
>> If using microsoft browsers, it's always a good idea to give the full
>> domain in the setcookie(), or else you may get troubles.
>>
>>
>>
>>
>> --
>>
>> //Aho
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация