extends |
Hm_DB_Session |
|---|
This session class uses a memcached to manage session data. It does not use PHP session handlers at all and is a completely indenpendant session system.
| Methods | ||||
|---|---|---|---|---|
public
|
start(object $request, $existing_session = false): void
Start the session. This could be an existing session or a new login
Start the session. This could be an existing session or a new login Parameters
Overrides |
# | ||
public
|
insert_session_row(): boolean|integer|array
save data on session start
|
# | ||
public
|
save_data(): boolean|integer|array
update memcache with current data
|
# | ||
public
|
end(): void
End a session after a page request is complete. This only closes the session and
does not destroy it
End a session after a page request is complete. This only closes the session and does not destroy it Overrides |
# | ||
public
|
close_early(): void
Close a session early, but don't destroy it
|
# | ||
public
|
destroy(object $request): void
Destroy a session for good
|
# | ||
public
|
connect(): boolean
Connect to the configured DB
Connect to the configured DB Returnstrue on success OverridesOverriden by |
# | ||
public
|
get_session_data(string $key): mixed
Get session data from the DB
Get session data from the DB Parameters
Returnsarray results or false on failure Overrides |
# | ||
| Methods inherited from Hm_DB_Session |
|---|
start_new(), start_existing(), upsert(), db_start() |
| Methods inherited from Hm_PHP_Session |
|---|
authed(), check(), set_session_params(), |
| Methods inherited from Hm_PHP_Session_Data |
|---|
validate_session_data(), start_session_data(), get(), set(), del(), |
| Methods inherited from Hm_Session |
|---|
auth(), __construct(), load_auth_mech(), dump(), just_started(), record_unsaved(), is_active(), is_admin(), ciphertext(), plaintext(), set_key(), get_key(), secure_cookie(), delete_cookie() |
| Methods used from Hm_Session_Fingerprint |
|---|
check_fingerprint(), build_fingerprint(), set_fingerprint() |
| Methods used from Hm_Session_Auth |
|---|
load_auth_mech(), auth(), save_auth_detail(), change_pass(), create() |
| Properties | |||
|---|---|---|---|
public
|
|
$session_key = ''
|
# |
public
|
|
$conn
|
# |
public
|
|
$cache_lifetime = 86400
|
# |
| Properties inherited from Hm_DB_Session |
|---|
$dbh |
| Properties inherited from Hm_PHP_Session |
|---|
$existing |
| Properties inherited from Hm_Session |
|---|
$loaded, $active, $internal_users, $enc_key, $auth_class, $site_config, $data, $cname, $auth_mech, $session_closed, $lifetime |