コード例 #1
0
ファイル: gwf3.class.php プロジェクト: sinfocol/gwf3
 /**
  * start a SQL based Session 
  * @param boolean $blocking 
  */
 public static function onStartSession($blocking = true)
 {
     $db = gdo_db();
     if (!isset($_COOKIE[GWF_SESS_NAME])) {
         setcookie(GWF_SESS_NAME, 'i_like_cookies', time() + 60, '/', GWF_Session::getDomain());
         GWF_Session::initFakeSession();
     } else {
         if (false === GWF_Session::start($blocking)) {
             self::logDie('GWF not installed?!');
         }
     }
 }