perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/user config.cfg
Date Sun, 10 Aug 2003 19:07:13 GMT
stas        2003/08/10 12:07:13

  Modified:    src/docs/2.0/user config.cfg
  Added:       src/docs/2.0/user/coding cooking.pod
  Log:
  start the cookbook chapter, add the redirect example
  
  Revision  Changes    Path
  1.1                  modperl-docs/src/docs/2.0/user/coding/cooking.pod
  
  Index: cooking.pod
  ===================================================================
  =head1 NAME
  
  Cooking Recipes
  
  =head1 Description
  
  As the chapter's title implies, here you will find ready-to-go
  mod_perl 2.0 recipes.
  
  If you know a useful recipe, not yet listed here, please post it to
  L<the mod_perl mailing list|maillist::modperl> and we will add it
  here.
  
  =head1 Sending Cookies in REDIRECT Response
  
    use CGI::Cookie ();
    use Apache::RequestRec ();
    use APR::Table ();
    
    use Apache::Const -compile => qw(REDIRECT OK);
    
    my $location = "http://example.com/final_destination/";
    
    sub handler {
        my $r = shift;
    
        my $cookie = CGI::Cookie->new(-name  => 'mod_perl',
                                      -value => 'awesome');
    
        $r->err_headers_out->add('Set-Cookie' => $cookie);
        $r->headers_out->set(Location => $location);
        $r->status(Apache::REDIRECT);
    
        return Apache::OK;
    }
    1;
  
  
  
  
  
  =head1 Maintainers
  
  Maintainer is the person(s) you should contact with updates,
  corrections and patches.
  
  =over
  
  =item *
  
  Stas Bekman E<lt>stas (at) stason.orgE<gt>
  
  =back
  
  =head1 Authors
  
  =over
  
  =item *
  
  Stas Bekman E<lt>stas (at) stason.orgE<gt>
  
  =back
  
  Only the major authors are listed above. For contributors see the
  Changes file.
  
  
  =cut
  
  
  
  
  
  
  1.27      +1 -0      modperl-docs/src/docs/2.0/user/config.cfg
  
  Index: config.cfg
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/config.cfg,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- config.cfg	22 Jul 2003 14:42:06 -0000	1.26
  +++ config.cfg	10 Aug 2003 19:07:13 -0000	1.27
  @@ -25,6 +25,7 @@
       group    => 'Coding',
       chapters => [qw(
           coding/coding.pod
  +        coding/cooking.pod
       )],
   
       group    => 'Porting',
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message