public function delete($id)
    {

        // prepare the pathname to the file containing the session data
        $filename = $this->getSessionSettings()->getSessionFilePrefix() . $id;
        $pathname = $this->getSessionSavePath($filename);

        // remove the session from the file system
        if ($this->removeSessionFile($pathname) === false) {
            throw new SessionCanNotBeDeletedException(
                sprintf('Session with ID %s can not be deleted', $id)
            );
        }
    }
public function delete($id)
    {

        // prepare the pathname to the file containing the session data
        $filename = $this->getSessionSettings()->getSessionFilePrefix() . $id;
        $pathname = $this->getSessionSavePath($filename);

        // remove the session from the file system
        if ($this->removeSessionFile($pathname) === false) {
            throw new SessionCanNotBeDeletedException(
                sprintf('Session with ID %s can not be deleted', $id)
            );
        }
    }
public function delete ( $ id ) { // prepare the pathname to the file containing the session data $ filename = $ this -> getSessionSettings ( ) -> getSessionFilePrefix ( ) . $ id ; $ pathname = $ this -> getSessionSavePath ( $ filename ) ; // remove the session from the file system if ( $ this -> removeSessionFile ( $ pathname ) === false ) { throw new SessionCanNotBeDeletedException ( sprintf ( 'Session with ID %s can not be deleted' , $ id ) ) ; } }
Deletes the session with the passed ID from the persistence layer.

@param string $id The ID of the session we want to delete

@return void
@throws \AppserverIo\Appserver\ServletEngine\SessionCanNotBeDeletedException Is thrown if the session can't be deleted
Deletes the session with the passed ID from the persistence layer .