void *cp_http_session_get(cp_http_session *session, char *key);
void *cp_http_session_set(cp_http_session *session,
char *key, void *value);
void *cp_http_session_set_dtr(cp_http_session *session,
char *key, void *value,
cp_destructor_fn dtr);
void cp_http_session_set_validity(cp_http_session *session,
long sec);
short cp_http_session_is_fresh(cp_http_session *session);
cp_http_session_set
sets the value
value
under the key key.
cp_http_session_set_dtr
allows setting a destructor function to be called on the stored value to
perform cleanup. No cleanup is done on items stored with cp_http_session_set or
with cp_http_session_set_dtr if the specified destructor is null.
cp_http_session_get
retrieves the value stored under key key.
cp_http_session_set_validity sets the session validity to sec seconds. Default validity is 24 hours.
This document was created by
man2html,
using the manual pages. Time: 21:26:15 GMT, January 30, 2006 |