set the cookie early by getting the Singleton object

This commit is contained in:
<bdauvergne@entrouvert.com> 1206722720 +0100 0001-01-01 00:00:00 +00:00
parent b5b13bbf97
commit 4970271796
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ require_once("lassospkit_datadir.inc.php");
LassoSPKitUtilsSession::$cookiename = LassoSPKitConfig::get('cookiename');
if (LassoSPKitUtilsSession::$use_session) {
session_start();
} else {
LassoSPKitUtilsSession::getSingleton();
}
class LassoSPKitUtilsSession {
private static $key = "__LassoSPKitSessionObject";