#!/usr/bin/perl /usr/bin/asp-perl <% my $form = $Request->QueryString(); # Expires $form->{expires} ||= 0; $Response->{Expires} = $form->{expires}; my $update_time = &Apache::ASP::Date::time2str(time()+$form->{expires}); # Buffer (defined $Session->{buffer}) || ($Session->{buffer} = $Response->{Buffer}); if($form->{buffer}) { $Session->{buffer} = ! $Session->{buffer}; } my $buffer_display = $Session->{buffer} ? "Set Buffer Off" : "Set Buffer On"; $Response->{Buffer} = $Session->{buffer}; # Cookie if($form->{cookie_name}) { $Response->{Cookies}{$form->{cookie_name}} = $form->{cookie_value}; } %>
| Response Object Demonstration |
* Please note that the cookie example takes 2 submits to show up in the table after setting it because the first time, the header is sent to the browser, and the 2nd, the browser sends it back.