[Session_AddVar] adds a variable to a specified session.
Accepts two parameters: The name of the session and the name of the variable.
At the end of the current page the value of the variable will be stored in the current session. When the session is next recalled with [Session_Start] the value of the stored variable will be restored.
Once a variable has been added to a session it's value will continue to be remembered in each page the session is loaded until a [Session_RemoveVar] method is called.
Note: [Session_AddVar] does not automatically create the named variable, this must be handled individually.
Session_AddVar('Session Name', 'Variable Name')
Use the [Session_AddVar] method. The following example creates a session named ShoppingCart and adds two variables, TotalCost and TotalShipping.
Session_Start( 'ShoppingCart', -Expires=1440, -UseCookie) Session_AddVariable('ShoppingCart', 'TotalCost') Session_AddVariable('ShoppingCart', 'TotalShipping')
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.