| 1 | package Apache::JAF::Cookies; | ||
| 2 | |||
| 3 | use Apache; | ||
| 4 | use Apache::Cookie (); | ||
| 5 | |||
| 6 | sub new { | ||
| 7 | my $class = shift; | ||
| 8 | return bless { r => Apache->request, cookies => Apache::Cookie->fetch() }, $class; | ||
| 9 | } | ||
| 10 | |||
| 11 | sub bake { | ||
| 12 | my $self = shift; | ||
| 13 | Apache::Cookie->new($self->{r}, @_)->bake(); | ||
| 14 | } | ||
| 15 | |||
| 16 | 1; |