src/Session.php
public function registerHandler(Handler $handler, int $chainProbability = 0) : void
    {
        static $first = true;
        if ($first) {
            $this->handlers = [];
            $first = false;
        }
        $this->handlers[] = [$handler, $chainProbability];
    }
public function registerHandler(Handler $handler, int $chainProbability = 0) : void
    {
        static $first = true;
        if ($first) {
            $this->handlers = [];
            $first = false;
        }
        $this->handlers[] = [$handler, $chainProbability];
    }
public function registerHandler ( Handler $ handler , int $ chainProbability = 0 ) : void { static $ first = true ; if ( $ first ) { $ this -> handlers = [ ] ; $ first = false ; } $ this -> handlers [ ] = [ $ handler , $ chainProbability ] ; }
Register a session handler.

@param Cesession\Handler $handler Handler object to use.
@param int $chainProbability The probability, expressed as a percentage,
that calls on this handler will afterwards be forwarded to the next
handler in the chain.
@return void
@see Cesession\Handler
Register a session handler .