scache_drop

Description

bool scache_drop(resource session)
bool $SCacheConnection->drop()

scache_drop destroys session and all data associated with it from scached backend. After completion session id is not valid any longer.

Parameters

session
Session resource returned from scache_open, scache_reset or scache_connect

Return values

TRUE on success, FALSE if session not existent or error.

In case of failure, error codes resolvable by scache_lasterr is one of below :

Examples

<?php

/* we do have a session */
$session = scache_reset('MyEasilyGuessableSecret');

/* and we do not have a session */
scache_drop($session);
?>