Procedural File: tce_functions_session.php
Source Location: /shared/code/tce_functions_session.php
Page Details:
User-level session storage functions. This script uses the session_set_save_handler() function to set the user-level session storage functions which are used for storing and retrieving data associated with a session. The session data is stored on a local database.
NOTE: This script automatically starts the user's session.
Tags:
F_session_close [line 80]
Close session. Call garbage collector function to remove expired sessions.
Tags:
F_session_destroy [line 157]
resource F_session_destroy(
string $key)
|
|
Deletes the specific session.
Tags:
Parameters
string |
$key |
session ID of session to destroy. |
F_session_gc [line 171]
int F_session_gc(
[int $maxlife = K_SESSION_LIFE])
|
|
Garbage collector. Deletes expired sessions. NOTE: while time() function returns a 32 bit integer, it works fine until year 2038.
Tags:
Parameters
int |
$maxlife |
max session life time in seconds. The default value is defined by K_SESSION_LIFE costant on shared/config/tce_config.php file. |
F_session_open [line 71]
bool F_session_open(
string $save_path, string $session_name)
|
|
Open session.
Tags:
Parameters
string |
$save_path |
path were to store session data |
string |
$session_name |
name of session |
F_session_read [line 90]
string F_session_read(
string $key)
|
|
Get session data.
Tags:
Parameters
F_session_string_to_array [line 191]
array F_session_string_to_array(
string $sd)
|
|
Convert encoded session string data to array.
Tags:
Parameters
string |
$sd |
input data string |
F_session_write [line 112]
resource F_session_write(
string $key, string $val)
|
|
Insert or Update session.
Tags:
Parameters
string |
$key |
session ID. |
string |
$val |
session data. |
getClientFingerprint [line 212]
string getClientFingerprint(
)
|
|
Generate a client fingerprint (unique ID for the client browser)
Tags:
getNewSessionID [line 244]
string getNewSessionID(
)
|
|
Generate and return a new session ID.
Tags:
|