Lasso Soft Inc. > Home

  • Articles

Legacy Tokens and Lasso 9

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">

/* ======== 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]">

[Token_Value: 'Token Name']

[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


No comments found
You must be logged in to comment.

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. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft