Skip to:

Opened 15 years ago

Closed 15 years ago

#828 closed defect (bug) (no action required)

messages_remove_callback_values cookies

Reported by: djpaul's profile DJPaul Owned by:
Milestone: Priority: minor
Severity: Version:
Component: Keywords:
Cc: djpaul@…


The cookies used by messages_remove_callback_values() and messages_add_callback_values() are prone to causing errors if you try to programatically send a message - an example of it was causing errors about trying set cookies after the page header had been sent to the client's browser.

I would like an argument added or some behaviour to avoid the cookies being set - it saves me and others duplicating a large function to only comment out one line.

Change History (1)

#1 @apeatling
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed

You shouldn't be adding messages after you've started to output the page. Run all of your code first, set the message, then output.

Unless I'm misunderstanding what you are saying, if so, please comment.

Note: See TracTickets for help on using tickets.