I have declared a structure that look like
typedef struct
{
char* key;
char* value;
}kvPair;
and in the session structure, i declared a variable as
struct session
{
char* id;
..... // other session variables
kvPair* pair;
}
Now in the session_start I have initialised the values for the pair variable and I have to access these values in /ext/mysql extension. A suggestion on how to achieve it would be greatly appreciated
I’m not sure what you’re trying to do, but if you want to read data that was saved in the session e.g. through this script:
Then yes, you can use the API exposed by the session extension:
Then you have these functions: