Skip to content

Instantly share code, notes, and snippets.

@notomato
Created August 17, 2012 02:24
Show Gist options
  • Save notomato/3375391 to your computer and use it in GitHub Desktop.
Save notomato/3375391 to your computer and use it in GitHub Desktop.
Encrypt and sign cookies
Session::config(array(
'default' => array(
'adapter' => 'Cookie',
'strategies' => array(
'Hmac' => array(
'secret' => '$f00bar$'
),
'Encrypt' => array(
'secret' => '$f00bar$'
)
)
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment