This tag, based on code posted by Adam Randall here, returns a pair array containing the variables within the given session. The tag must be loaded via LassoStartup, and will only return results when the value of [session_result] is "load." Otherwise returns "Undefined." Currently works with "Local Default" (SQLite) or "External" (MySQL) sessions. "In-Memory" sessions are not supported.
Parameters
none
Sample Usage
// display all the vars in the session with their values
if(session_vars('mySession') != 'Undefined');
iterate(session_vars('mySession'), local('i'));
#i->first + ': ' + #i->second + '<br>';
/iterate;
/if;
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.