Practical mod_perl / HTML Book /



previous page: A.5. Handling Cookies
  
page up: HTML Version of the book
  
next page: A.7. Sending Cookies in REDIRECT Responses

A.6. Sending Multiple Cookies with the mod_perl API


Given that you have prepared your cookies in @cookies, the following code will submit all the cookies:

for (@cookies) {
    $r->headers_out->add('Set-Cookie' => $_);
}

 

Continue to:

  • prev: A.5. Handling Cookies
  • Table of Contents
  • next: A.7. Sending Cookies in REDIRECT Responses







TOP
previous page: A.5. Handling Cookies
  
page up: HTML Version of the book
  
next page: A.7. Sending Cookies in REDIRECT Responses


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com