codeguy/Slim — Issue #209: Bugfix: cookies.secret and cookies.secret_key
Author: cept0
Created: 2012-01-03 21:56:43+00:00
State: open

There's a small bug in the latest public branch (1.5.1.2-84)

*Slim.php*
```
public function getEncryptedCookie( $name, $deleteIfInvalid = true ) {
$value = Slim_Http_Util::decodeSecureCookie(
$this->request->cookies($name),
- $this->config('cookies.secret'),
+ $this->config('cookies.secret_key'),
$this->config('cookies.cipher'),
$this->config('cookies.cipher_mode')
);
if ( $value === false && $deleteIfInvalid ) {
$this->deleteCookie($name);
}
return $value;
}
```