Tag: cookies

  • PHP: Zend Framework, MVC, Cookies and 4096 byte oddities

    A little word of warning which has puzzled me for over 3 hours in debugging… If you use Zend_Controller_Front::getInstance()->dispatch(); in your Zend Framework index.php file for firing off the MVC system, and the returned page is over 4096 bytes (4 kilobytes) in size you cannot set a cookie afterwards without causing the “fun” error “Cannot […]

  • Coding: Password Security in Cookies

    Via boren.nu, I came across a nice detailed section on how to create a secure cookie and password system (which will be implemented in WordPress 2.4): Cookies will be based on the secure cookie protocol described here. The cookie is structured like so: user name|expiration time|HMAC( user name|expiration time, k) where k = HMAC(user name|expiration […]