Jump to content


setcookie


3 replies to this topic

#1 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 08 January 2006 - 06:08 PM

is it possible to set a cookie AFTER the <html> tag?

#2 tiki

    Young Padawan

  • Members
  • Pip
  • 259 posts
  • Gender:Male
  • Location:California

Posted 08 January 2006 - 07:18 PM

Im pretty sure you can for cookies, just not sessions.

#3 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

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 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 08 January 2006 - 08:57 PM

http://php.net/manua...n.setcookie.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
http://php.net/manua...on.ob-start.php





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users