SessionHandlerDB::destroy() SessionHandlerDB::destroy(string $id) SessionHandlerDB::destroy(string $id) | bool | Destroy the session indicated by the given session ID | |
SessionHandlerDB::gc() SessionHandlerDB::gc(int $seconds) SessionHandlerDB::gc(int $seconds) | bool | Garbage collection: remove stale sessions | |
SessionHandlerDB::getModuleConfigInputfields() SessionHandlerDB::getModuleConfigInputfields(array $data) SessionHandlerDB::getModuleConfigInputfields(array $data) | InputfieldWrapper | Session configuration options | |
SessionHandlerDB::getModuleInfo() SessionHandlerDB::getModuleInfo() SessionHandlerDB::getModuleInfo() | (nothing) | | |
SessionHandlerDB::getNumSessions() SessionHandlerDB::getNumSessions() SessionHandlerDB::getNumSessions(int $seconds = 300) | int | Return the number of active sessions in the last 5 mins (300 seconds) | |
SessionHandlerDB::getSessionData() SessionHandlerDB::getSessionData($sessionID) SessionHandlerDB::getSessionData($sessionID) | array | Return all session data for the given session ID | |
SessionHandlerDB::getSessions() SessionHandlerDB::getSessions() SessionHandlerDB::getSessions(int $seconds = 300, int $limit = 100) | array | Get the most recent sessions | |
SessionHandlerDB::hookLoginSuccess() SessionHandlerDB::hookLoginSuccess(HookEvent $event) SessionHandlerDB::hookLoginSuccess(HookEvent $event) | (nothing) | Hook called after Session::loginSuccess to enforce the noPS option | |
SessionHandlerDB::init() SessionHandlerDB::init() SessionHandlerDB::init() | (nothing) | Initailize, called when module configuration has been populated | |
SessionHandlerDB::install() SessionHandlerDB::install() SessionHandlerDB::install() | (nothing) | Install sessions table | |
SessionHandlerDB::lockSeconds | int | Max number of seconds to wait to obtain DB row lock. | |
SessionHandlerDB::noPS | int bool | Prevent more than one session per logged-in user? | |
SessionHandlerDB::read() SessionHandlerDB::read(string $id) SessionHandlerDB::read(string $id) | string | Read and return data for session indicated by $id | |
SessionHandlerDB::retrySeconds | int | Seconds after which to retry after a lock fail. | |
SessionHandlerDB::uninstall() SessionHandlerDB::uninstall() SessionHandlerDB::uninstall() | (nothing) | Drop sessions table | |
SessionHandlerDB::upgrade() SessionHandlerDB::upgrade(int $fromVersion, int $toVersion) SessionHandlerDB::upgrade(int $fromVersion, int $toVersion) | (nothing) | Upgrade module version | |
SessionHandlerDB::useIP | int bool | Track IP address? | |
SessionHandlerDB::useUA | int bool | Track user agent? | |
SessionHandlerDB::wired() SessionHandlerDB::wired() SessionHandlerDB::wired() | (nothing) | Initialize the save handler when $modules sets the current instance | |
SessionHandlerDB::write() SessionHandlerDB::write(string $id, string $data) SessionHandlerDB::write(string $id, string $data) | bool | Write the given $data for the given session ID | |