is it possible to set a cookie AFTER the <html> tag?
setcookie
Started by Av-, Jan 08 2006 06:08 PM
3 replies to this topic
#1
Posted 08 January 2006 - 06:08 PM
#2
Posted 08 January 2006 - 07:18 PM
Im pretty sure you can for cookies, just not sessions.
#3
Posted 08 January 2006 - 08:42 PM
well i tried it and as i thought it doesnt work, so im wondering if there's a way around.
#4
Posted 08 January 2006 - 08:57 PM
http://php.net/manua...n.setcookie.php
http://php.net/manua...on.ob-start.php
Quote
Note: As of PHP 4, you can use output buffering to send output prior to the call of this function, with the overhead of all of your output to the browser being buffered in the server until you send it. You can do this by calling ob_start() and ob_end_flush() in your script, or setting the output_buffering configuration directive on in your php.ini or server configuration files
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
