extends |
Hm_PHP_Session |
|---|
This session class uses a PDO compatible DB to manage session data. It does not use PHP session handlers at all and is a completely indenpendant session system.
| Methods | ||||
|---|---|---|---|---|
public
|
insert_session_row(): boolean|integer|array
Create a new session
|
# | ||
public
|
connect(): bool
Connect to the configured DB
|
# | ||
public
|
start(object $request): 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
OverridesOverriden by |
# | ||
public
|
start_new(object $request): void
Start a new session
Start a new session Parameters
|
# | ||
public
|
start_existing(string $key): void
Continue an existing session
Continue an existing session Parameters
|
# | ||
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 Overriden by |
# | ||
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 OverridesOverriden by |
# | ||
public
|
save_data(): boolean|integer|array
Write session data to the db
Write session data to the db OverridesOverriden by |
# | ||
public
|
close_early(): void
Close a session early, but don't destroy it
Close a session early, but don't destroy it OverridesOverriden by |
# | ||
public
|
upsert(string $type): boolean|integer|array
Update or insert a row
Update or insert a row Parameters
|
# | ||
public
|
destroy(object $request): void
Destroy a session for good
Destroy a session for good Parameters
OverridesOverriden by |
# | ||
public
|
db_start(object $request): 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
|
# | ||
| 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 = ''
|
# |
protected
|
|
$dbh
|
# |
| Properties inherited from Hm_PHP_Session |
|---|
$conn, $existing |
| Properties inherited from Hm_Session |
|---|
$loaded, $active, $internal_users, $enc_key, $auth_class, $site_config, $data, $cname, $auth_mech, $session_closed, $lifetime |