[ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Memcache based session handler. This is based on the memcached code. It lacks some features, such as locking options, but appears to work in practice.
Copyright: | 2014 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 205 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
memcache:: (7 methods):
__construct()
start()
init()
session_exists()
get_memcaches()
kill_all_sessions()
kill_session()
__construct() X-Ref |
Creates new instance of handler. |
start() X-Ref |
Starts the session. return: bool success |
init() X-Ref |
Inits session handler. |
session_exists($sid) X-Ref |
Check the backend contains data for this session id. Note: this is intended to be called from manager::session_exists() only. param: string $sid PHP session ID return: bool true if session found. |
get_memcaches() X-Ref |
Gets the Memcache objects, one for each server. The connects must be closed manually after use. Note: the servers are not automatically synchronised when accessed via Memcache class, it needs to be done manually by accessing all configured servers. return: \Memcache[] Array of initialised memcache objects |
kill_all_sessions() X-Ref |
Kills all active sessions, the core sessions table is purged afterwards. |
kill_session($sid) X-Ref |
Kills one session, the session record is removed afterwards. param: string $sid PHP session ID |
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |