setting cookies from singlepage controller?

Permalink
is there a method to hook into to set cookies pre-header from a singlepage controller?

I can't seem to get them to take. tried "on_before_render" and "on_start".

thoughts?

ChadStrat

RadiantWeb
 
ScottC replied on at Permalink Reply
ScottC
if they truly won't take,(not sure) then you would want to extend on page_view, compare the page(or its controller), and do it there?
iconicschema replied on at Permalink Reply
You could always set the cookie via javascript.
RadiantWeb replied on at Permalink Reply
RadiantWeb
you would think. but not that I can tell. headers already sent. nullifying any cookies trying to set.

C
ScottC replied on at Permalink Reply
ScottC
the database backup uses cookies set in javascript, iconicschema is right. You can see an example right in core to use for your next app Chad.

Good call iconicschema :)
Mnkras replied on at Permalink Reply
Mnkras
Chad, the themeswitcher block uses cookies :)