Link | session_var |
Author | Jason Huck |
Category | Session |
Version | 8.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 14 Mar 2006 |
Updated | 14 Mar 2006 |
More by this author... |
Simultaneously defines variables and adds them to the given session.
session_start( -name='testsession'); session_result + '
\n'; session_var( -name='testsession', 's_color' = 'red', 's_size' = 5, 's_date' = date ); $s_color + ', ' + $s_color->type + '
\n'; $s_size + ', ' + $s_size->type + '
\n'; $s_date + ', ' + $s_date->type + '
\n';
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.
define_tag( 'var', -namespace='session_', -required='name', -priority='replace', -description='Simultaneously defines variables and adds them to the given session.' ); iterate(params, local('i')); if(!#i->first->waskeyword); !var_defined(#i->first) ? var(#i->first) = #i->second; session_addvar( -name=#name, #i->first); /if; /iterate; /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft