final public function destroy($id = "")
    {

        $id = !empty($id) ? $id : $this->getId();
        $now = time();

        if (empty($id)) {
            return false;
        }

        setcookie(session_name(), '', $now - 42000, '/');

        if (session_id()) {
            @session_unset();
            @session_destroy();
        }

        //Delete from db;
        //Do a garbage collection
        $this->gc($id);
    }
final public function destroy($id = "")
    {

        $id = !empty($id) ? $id : $this->getId();
        $now = time();

        if (empty($id)) {
            return false;
        }

        setcookie(session_name(), '', $now - 42000, '/');

        if (session_id()) {
            @session_unset();
            @session_destroy();
        }

        //Delete from db;
        //Do a garbage collection
        $this->gc($id);
    }
final public function destroy ( $ id = "" ) { $ id = ! empty ( $ id ) ? $ id : $ this -> getId ( ) ; $ now = time ( ) ; if ( empty ( $ id ) ) { return false ; } setcookie ( session_name ( ) , '' , $ now - 42000 , '/' ) ; if ( session_id ( ) ) { @ session_unset ( ) ; @ session_destroy ( ) ; } //Delete from db; //Do a garbage collection $ this -> gc ( $ id ) ; }
Destroys a redundant session

@param type $id
@param type $restart
Destroys a redundant session