Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Set cookie error after headers already sent #1

Closed
skl opened this issue Dec 12, 2011 · 1 comment
Closed

Set cookie error after headers already sent #1

skl opened this issue Dec 12, 2011 · 1 comment
Assignees

Comments

@skl
Copy link
Contributor

skl commented Dec 12, 2011

Use case:

Event tracking of a download:

  • User requests file via URL
  • PHP tracker script triggers event (label: 'Download started')
  • Tracker script delivers download via readfile()
  • Tracker script attempts to trigger event (label: 'Download completed')

Final step produces the warning: 'PHP Warning: Cannot modify header information - headers already sent'

Maybe some sort of toggle to disable cookies?

@ghost ghost assigned chappy84 Dec 12, 2011
@chappy84
Copy link
Owner

Major update on the way, fix will be put into that

chappy84 pushed a commit that referenced this issue Dec 13, 2011
Fix to Issue #1 - ensure cookie headers are only sent once, if that.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants