Sean Davis wrote:
Thanks both of you. I was able to show that the cookie was never set as my code was written. For an unknown reason, the line:

-domain => 'nih.gov'

keeps the cookie from being set. My server log doesn't show a problem, so I'm not sure what is up. When I remove that line, however, I have no problems and the cookie is set. Not a big deal to leave the domain off, but I am curious as to why this doesn't work. Any more insight is not necessary, but appreciated.

Well that solves it. I bet you were testing the app on an address that wasn't in the domain 'nih.gov'. Browsers only accept cookies for a domain it it originated from that domain. Without setting a domain it just goes to the domain from which it originated. This is only a problem if you want other sites in the same domain to be able to see it. So normally you don't need to set it.


Glad we could help.
--
Michael Peters
Developer
Plus Three, LP


--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to