Move initialization of class variables

This commit is contained in:
Benjamin Dauvergne 2010-04-20 17:27:25 +02:00
parent 796a21551d
commit 5107fe87d2
1 changed files with 8 additions and 9 deletions

View File

@ -15,17 +15,8 @@ require_once("lassospkit_debug.inc.php");
code.
*/
LassoSPKitUtilsSession::$cookiename = LassoSPKitConfig::get('cookiename');
LassoSPKitUtilsSession::$session_storage_class = LassoSPKitConfig::get('session_storage_class');
LassoSPKitUtilsSession::$storage = new LassoSPKitUtilsSession::$session_storage_class();
if (LassoSPKitUtilsSession::$use_session && ! isset($_SESSION)) {
session_start();
} else {
LassoSPKitUtilsSession::getSingleton();
}
class LassoSPKitUtilsSession {
static $key = "__LassoSPKitSessionObject";
public static $cookiename;
static $THIS;
var $vars;
@ -241,3 +232,11 @@ class LassoSPKitUtilsSession {
return $athis->get('assertionAttributes');
}
}
LassoSPKitUtilsSession::$session_storage_class = LassoSPKitConfig::get('session_storage_class');
LassoSPKitUtilsSession::$storage = new LassoSPKitUtilsSession::$session_storage_class();
if (LassoSPKitUtilsSession::$use_session && ! isset($_SESSION)) {
session_start();
} else {
LassoSPKitUtilsSession::getSingleton();
}