×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Absol Charles
Added: Apr 11, 2015 12:46 AM
Views: 16
Tags: session php yii
test create
  1.         /**
  2.          * @return float the probability (percentage) that the gc (garbage collection) process is started on every session initialization, defaults to 1 meaning 1% chance.
  3.          */
  4.         public function getGCProbability()
  5.         {
  6.                 return (float)(ini_get('session.gc_probability')/ini_get('session.gc_divisor')*100);
  7.         }