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 :)

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.