Exemplo n.º 1
0
 /**
  * Method called on close of a database session.
  *
  * @return boolean Success
  * @access private
  */
 function __close()
 {
     $probability = mt_rand(1, 150);
     if ($probability <= 3) {
         switch (Configure::read('Session.save')) {
             case 'cache':
                 Cache::gc();
                 break;
             default:
                 CakeSession::__gc();
                 break;
         }
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * Method called on close of a database session.
  *
  * @return boolean Success
  * @access private
  */
 function __close()
 {
     $probability = mt_rand(1, 150);
     if ($probability <= 3) {
         CakeSession::__gc();
     }
     return true;
 }