Description
-
Adds new session variable to the collection.
Return Type
-
A WebSession
object.
Syntax
-
object.Add (Name,
[Value])
The Add Method syntax has these parts:
| object |
An expression evaluating to an object
of type WebSessions. |
| Name |
Required. A String value. Represents
session variable name. |
| Value |
Optional. A Variant value. Specifies
session variable value (or reference to some
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
|