Lasso Soft Inc. > Home

[ session_removevar ]

Method

[Session_RemoveVar] removes a variable from a specified session.

Accepts two parameters: the name of the session and the name of the variable to remove.

Once a variable has been removed from a session it's value will no longer be remembered at the end of the current page.

Note: [Session_RemoveVar] does not alter the value of the named variable.

  • Syntax
Session_RemoveVar('Session Name', 'Variable Name')
Examples
  • Beginner

To remove a variable from a session:

Use the [Session_RemoveVar] method. The following example removes several variables from a session named ShoppingCart including TotalCost and TotalShipping.

Code

Session_RemoveVar('ShoppingCart', 'TotalCost')
Session_RemoveVar('ShoppingCart', 'TotalShipping')

Recent Comments

No Comments found

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