Permalink
Browse files

Fixes #3805 - Allow session driver to be specified

  • Loading branch information...
1 parent aeb815c commit b98daad83b2e9ea5d80cec1291236f4b6a7f594d @kiall kiall committed May 11, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 classes/kohana/auth.php
  2. +1 −0 config/auth.php
View
@@ -54,7 +54,7 @@ public function __construct($config = array())
// Save the config in the object
$this->_config = $config;
- $this->_session = Session::instance();
+ $this->_session = Session::instance($this->_config['session_type']);
}
abstract protected function _login($username, $password, $remember);
View
@@ -6,6 +6,7 @@
'hash_method' => 'sha256',
'hash_key' => NULL,
'lifetime' => 1209600,
+ 'session_type' => Session::$default,
'session_key' => 'auth_user',
// Username/password combinations for the Auth File driver

0 comments on commit b98daad

Please sign in to comment.