#423: Allow strtotime strings for lifetime in Response::setCookie()
-------------------------+--------------------------------------------------
 Reporter:  david        |       Owner:  david    
     Type:  enhancement  |      Status:  new      
 Priority:  low          |   Milestone:  0.11     
Component:  response     |     Version:  0.11.0RC2
 Severity:  minor        |    Keywords:           
-------------------------+--------------------------------------------------
 http://php.net/strtotime

 cool:

 {{{
 $res->setCookie('name', 'value', '+1 year');

 $res->setCookie('name', 'value', 'next thursday 2am'); // that won't work
 tho if it's thursday before 2am, will not give the same day, strtotime
 "issue" (albeit understandable, since we want "next thursday")

 $res->setCookie('name', 'value', 'July 4 2007'); // fixed dates again!
 cool.
 }}}

 and all cacheable! even fixed dates! fantastic!

-- 
Ticket URL: <http://trac.agavi.org/ticket/423>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to