Tokens are a legacy syntax model from very early versions of the Lasso language.
They have been removed in Lasso 9 due to security and general obscelesence.
In code being converted from older versions of Lasso, token syntax will break in Lasso 9.
Token setting and output can be rewritten as follows:
[Inline: -Token.Name=Value, ...]
<a href="default.lasso?-Token.Name=Value&...">Link</a>
<form action="default.lasso" method="POST">
<input type="hidden" name="-Token.Name" value="Value">
...
</form>
/* ======== Should be rewritten as follows: =========== */
[local(token_name = 'value')]
[Inline: ...]
<a href="default.lasso?token_name=[#token_name]&...">Link</a>
<form action="default.lasso" method="POST">
<input type="hidden" name="token_name" value="[#token_name]">
...
</form>
[Token_Value: 'Token_Name'] can be rewritten as follows:
// URL: http://dev.local/test.lasso?-token=123
web_request->param('-Token_Name') // gives 123
Author: Jonathan Guthrie
Created: 13 Apr 2012
Last Modified: 13 Apr 2012
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft