CGI Session API.
Functions | |
qentry_t * | qcgisess_init (qentry_t *request, const char *dirpath) |
Initialize session. More... | |
bool | qcgisess_settimeout (qentry_t *session, time_t seconds) |
Set the auto-expiration seconds about user session. More... | |
const char * | qcgisess_getid (qentry_t *session) |
Get user session id. More... | |
time_t | qcgisess_getcreated (qentry_t *session) |
Get user session created time. More... | |
bool | qcgisess_save (qentry_t *session) |
Update session data. More... | |
bool | qcgisess_destroy (qentry_t *session) |
Destroy user session. More... | |
Initialize session.
request | a pointer of request structure returned by qcgireq_parse() |
dirpath | directory path where session data will be kept |
bool qcgisess_settimeout | ( | qentry_t * | session, |
time_t | seconds | ||
) |
Set the auto-expiration seconds about user session.
session | a pointer of session structure |
seconds | expiration seconds |
const char* qcgisess_getid | ( | qentry_t * | session | ) |
Get user session id.
session | a pointer of session structure |
time_t qcgisess_getcreated | ( | qentry_t * | session | ) |
Get user session created time.
session | a pointer of session structure |
bool qcgisess_save | ( | qentry_t * | session | ) |
Update session data.
session | a pointer of session structure |
bool qcgisess_destroy | ( | qentry_t * | session | ) |
Destroy user session.
session | a pointer of session structure |