Created
August 12, 2012 12:00
-
-
Save notomato/3331564 to your computer and use it in GitHub Desktop.
Example session bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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