$WBSETS - set value of session variable

Availability
$WBSETS is available for use with all WBSP commands when WB_UseSession is set to TRUE.

Syntax
$WBSETS{varname|varvalue|showvar}
$WBSETS[varname|varvalue|showvar]

Parameters
varname - the name of the variable
varvalue - the value that will be saved
showvar - optional parameter - if set to true (T,ON,1) WhizBase will show the saved value

Returns
Saved value if showvar parameter is set to TRUE, otherwise it returns nothing, just saves the value of a variable in session

Example

<!--
[FormFields]
wb_command=r
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>Cart</title>
</head>
<body>
Item $WBSETS[cartitems|$WBGETS[cartitems];$WBV[ItemID]|T] added successfully!
</body>
</html>