Name
sessionkeys — returns an array of all the session variable
names
Synopsis
string[] sessionkeys ( |
) ; |
|
Description
Returns an array of strings. Each string in the array is the name of a
session variable.
Example 49. sessionkeys Example
// Get rid of all session variables prefixed with "history-"
string[] keys = sessionkeys();
for(int i = 0; i < keys.length(); i++)
if(strlen(keys[i]) >= 8 && substr(keys[i], 0, 8) == "history-")
clearsession(keys[i]);