![]() |
Defines | |
#define | SESSION_DEFAULT_REPOSITORY "/tmp" |
#define | SESSION_ID "QSESSIONID" |
#define | SESSION_PREFIX "qsession-" |
#define | SESSION_STORAGE_EXTENSION ".properties" |
#define | SESSION_TIMEOUT_EXTENSION ".expire" |
#define | SESSION_TIMETOCLEAR_FILENAME "qsession-timetoclear" |
#define | INTER_PREFIX "_Q_" |
#define | INTER_SESSIONID INTER_PREFIX "SESSIONID" |
#define | INTER_SESSION_REPO INTER_PREFIX "REPOSITORY" |
#define | INTER_CREATED_SEC INTER_PREFIX "CREATED" |
#define | INTER_INTERVAL_SEC INTER_PREFIX "INTERVAL" |
#define | INTER_CONNECTIONS INTER_PREFIX "CONNECTIONS" |
#define | SESSION_DEFAULT_TIMEOUT_INTERVAL (30 * 60) |
Functions | |
Q_ENTRY * | qSessionInit (Q_ENTRY *request, const char *dirpath) |
Initialize session. | |
bool | qSessionSetTimeout (Q_ENTRY *session, time_t seconds) |
Set the auto-expiration seconds about user session. | |
const char * | qSessionGetId (Q_ENTRY *session) |
Get user session id. | |
time_t | qSessionGetCreated (Q_ENTRY *session) |
Get user session created time. | |
bool | qSessionSave (Q_ENTRY *session) |
Update session data. | |
bool | qSessionDestroy (Q_ENTRY *session) |
Destroy user session. |
Initialize session.
request | a pointer of request structure returned by qCgiRequestParse() | |
dirpath | directory path where session data will be kept |
bool qSessionSetTimeout | ( | Q_ENTRY * | session, | |
time_t | seconds | |||
) |
Set the auto-expiration seconds about user session.
session | a pointer of session structure | |
seconds | expiration seconds |
const char* qSessionGetId | ( | Q_ENTRY * | session | ) |
Get user session id.
session | a pointer of session structure |
time_t qSessionGetCreated | ( | Q_ENTRY * | session | ) |
Get user session created time.
session | a pointer of session structure |
bool qSessionSave | ( | Q_ENTRY * | session | ) |
Update session data.
session | a pointer of session structure |
bool qSessionDestroy | ( | Q_ENTRY * | session | ) |
Destroy user session.
session | a pointer of session structure |
[Home] [About] [Examples] [Changes] [Download] [SVN Repository] [Install] [Reference] |