This is a discussion on "Cannot modify header information - headers already sent" within the PHP Forum section. This forum, and the thread "Cannot modify header information - headers already sent are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Cannot modify header information - headers already sent
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Cannot modify header information - headers already sent
I've just knocked up a quick login system using cookies and when I run my logout script I get this error:
Quote:
|
|
|
|
|||
|
A cookie is sent via HTTP headers. Unfortunately HTTP headers are sent before any page content and you clearly send some HTML before you try to send the cookie.
Most scripts get around this by doing any checks and sending cookies before the HTML, or using template systems which bypass the problem entirely. |
![]() |
| Tags |
| cannot, modify, header, information, headers, already, sent |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Headers | alexgeek | Search Engine Optimization (SEO) | 2 | Jul 7th, 2008 09:08 |
| Modify the DOM? | gustaf | JavaScript Forum | 1 | Sep 19th, 2007 23:01 |
| 3 choices 3 headers | saltedm8 | Graphics and 3D | 12 | Jun 24th, 2007 09:26 |
| Cannot modify header information - headers already sent | Gee Bee | PHP Forum | 7 | Mar 12th, 2006 17:34 |
| Form headers appearing bold | Freddie | PHP Forum | 1 | Dec 20th, 2005 14:26 |