Junior Member from US
joined:Feb 11, 2010
Warning: Cannot modify header information - headers already sent by (output started at /blah/blah/blah/blah/not_the_actual_name.php:61) in /blah/blah/blah/blah/not_the_actual_name.php:on line 62
I’ve tried all the following and still get the error:
document.cookie = ‘foo=’+’bar’;
I’ve switched the single quotes for double and double for singles.
I tried closing out php, ?> and writing the cookie info and returning to php, <?php
When I used to include instead of using the re-direct the script info for writing the cookie appeared on the destination page. I tried using an intermediate page for writing the cookie ( a 2nd redirect). The only thing that has worked is, I redirected to an intermediate page, put the cookie headers in the <head> section of the html followed with a meta-direct but if the page hangs up there for whatever reason all the cookie info is on the page source. I’ve done lots of searching on this one and haven’t found anything quite the same. If any info is needed I would be glad to offer. Thanx