<?php

/**
 * Class Cf_Session_database_driver
 */
class Cf_Session_database_driver extends CI_Session_database_driver
{
    /**
     * @param string $session_id
     * @override
     *
     * Do not lock to allow parallel requests
     *
     * @return bool
     */
    protected function _get_lock($session_id)
    {
        $this->_lock = $session_id;
        return true;
    }

    /**
     * @override
     *
     * Do not release lock, because lock skipped
     *
     * @return bool
     */
    protected function _release_lock()
    {
        return true;
    }
}
