Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Add method
Adds new session variable to the collection.
Type
WebSession objectSyntax
- Basic
object.Add (Name, [Value])
The Add(object,Name,Value) syntax has these parts:
The Add(object,Name,Value) syntax has these parts:
object | An expression evaluating to an object of type WebSessions |
Name | A String value. Represents session variable name. |
Value | A Variant value. Specifies session variable value (or reference to some object). |
Return value | WebSession object |
Remarks
Add method is used to add new session variable to the collection, for the user. You can use it like this:User.SessionVars.Add("MyCount").Value = 5
or, you can completely omit 'Add' keyword and do this
User.SessionVars("MyCount") = 5