[nycphp-talk] why does setcookie fail?????
Adam Maccabee Trachtenberg
adam at trachtenberg.com
Sun Sep 7 05:39:14 EDT 2003
On Sat, 6 Sep 2003, Phil Powell wrote:
> Hans, getting me to think methodically like you do would be like asking a
> 900-year old corpse to code PHP. Honestly, I am not physically/mentally
> wired to do so, but hey, suggestions are always welcomed! :)
Phil --
Maybe you should try and remember what a pain it was to debug the
setcookie() issue in a non-methodical way. :)
But seriously, my suggestion is whenever you're getting frustrated
to take a deep breath, a five minute break, then come back and put
together a step-by-step list of what you're trying to
accomplish. Once you're armed with a list, you can then verify that
each step is getting the correct input and providing the correct
output. Often times, merely the process of figuring this out will
trigger what you should do to fix the bug.
> Thanx though, the cookie issue has been resolved, now I can't figure out how
> to auto-redirect with a target!
You can use the Set-Target header, but I believe this only works on
Netscape and not IE. If you do figure out a way to solve this under
IE, please let me know because I was trying to track this answer down
for someone recently and couldn't come up with a solution.
-adam
--
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!
More information about the talk
mailing list