public function SessionProxy_Storage_Interface::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'.
2 methods override SessionProxy_Storage_Interface::destroyFor()
- SessionProxy_Storage_Cache::destroyFor in lib/
SessionProxy/ Storage/ Cache.php - Destroy all known sessions using the given conditions.
- SessionProxy_Storage_Database::destroyFor in lib/
SessionProxy/ Storage/ Database.php - Destroy all known sessions using the given conditions.
File
- lib/
SessionProxy/ Storage/ Interface.php, line 53
Class
- SessionProxy_Storage_Interface
- Storage implementation must be able to index all session using the owner user identifier: this complexify the session handling but allow aggresive optimizations.
Code
public function destroyFor($index, $value);