C
Chris Dutton
Hi,
I'm using eRuby and mod_ruby to write some simple *.rhtml pages (I just
switched to a host with decent support for Ruby), but there's one thing
that's got me scratching my head.
How do I set cookies?
eRuby's handling all of the HTTP headers for, so by the time I get
control back, it's too late. If I recall correctly, there's a
"no-header" flag, but I don't really want to have to menually output the
normal headers on every page.
I'd appreciate any light you might be able to shed on this.
Thanks,
Chris
I'm using eRuby and mod_ruby to write some simple *.rhtml pages (I just
switched to a host with decent support for Ruby), but there's one thing
that's got me scratching my head.
How do I set cookies?
eRuby's handling all of the HTTP headers for, so by the time I get
control back, it's too late. If I recall correctly, there's a
"no-header" flag, but I don't really want to have to menually output the
normal headers on every page.
I'd appreciate any light you might be able to shed on this.
Thanks,
Chris