Skip to content

Instantly share code, notes, and snippets.

@notomato
Created August 12, 2012 12:00
Show Gist options
  • Save notomato/3331564 to your computer and use it in GitHub Desktop.
Save notomato/3331564 to your computer and use it in GitHub Desktop.
Example session bootstrap
use lithium\storage\Session;
Session::config(array(
'default' => array(
'adapter' => 'Cookie',
'strategies' => array(
'Encrypt' => array('secret' => 'somesecretstring')
)
)
));
use lithium\security\Auth;
Auth::config(array(
'default' => array(
'adapter' => 'Form',
'model' => 'app\models\Users',
'fields' => array('username', 'password'),
'scope' => array('status' => 'active')
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment