NAME

cat_newdatakey - create a key for session data

SYNOPSIS

#include <cat.h>

int cat_newdatakey(void);

DESCRIPTION

Returns a new key to be used when storing data in a session, using cat_setsessdata(). Keys are global to the process, and each key should always be used to store the same kind of data in all sessions. Keys cannot be freed, reclaimed, or recycled. Keys also should not be dynamically allocated other than in the initialization phase for any subsystem that requires to associate data with each session.

SEE ALSO

cat, cat_setsessdata