public function SessionProxy_Storage_Cache::destroyFor in Session Proxy 7
Destroy all known sessions using the given conditions.
This function implementation is optional, garbage collector should be enough for session destruction in most cases.
Implement this function will only improve performances, it is important that it should remain silent if you cannot handle the given parameters.
Parameters
string $index: Potential session index key, such as 'uid'.
mixed $value: Potential session index value, such as an integer for 'uid'.
Overrides SessionProxy_Storage_Interface::destroyFor
File
- lib/
SessionProxy/ Storage/ Cache.php, line 115
Class
- SessionProxy_Storage_Cache
- Storage implementation based upon a specific cache backend.
Code
public function destroyFor($index, $value) {
/*
* FIXME: Do-able?
*
if ('uid' == $index) {
db_delete('sessions')
->condition($index, $value)
->execute();
}
*/
}