Re: Cookies in non-frame sites
| From: | Bogdan Ribic | Date: | Sun, 26 Feb 2006 12:35:03 +0000 |
| Subject: | Re: Cookies in non-frame sites | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231105@lists.php.net to get a copy of this message | ||
You can also use output buffering, write cookies from anywhere, and at the end of execution buffers will auto-flush.
emil@vanster.nu wrote:
Hello, Most sites today seems to be based on this style: include(top); include(current_page); include(bottom); If one wants to set cookies from current_page, how should that be handled with as clean source as possible? Before I had the top and bottom output as functions that are called from each page, so I can call header stuff before it's executed. But it's not a very good looking approach. -- Open source PHP code generator for DB operations http://sourceforge.net/projects/bfrcg/