Session Contents Collection

The Session.Contents collection contains all of the items that have been established for a session. Information stored in the Session collections is available during a receiver session. The collection can be used to determine the value of a specific session item, or to iterate through the collection and retrieve a list of all items in the session. See the Collection Object for standard collection properties and methods.

Syntax

Item = Session.Contents(key|index)

Parameters
key
The identifier for the item to return.
index
An index offset indicating which item in the list to return. The index starts at 0
Settings and Return Values

Sets or returns a Variant value.

Remarks

The Contents collection is the Session object implicit collection. Therefore you do not need to specify .Contents when accessing the collection.

Example

Sub Mail_OnStartRender
    Session("Credits") = Record.Fields("Credits") * Application("CreditRatio")
End Sub

Applies to

Session Object

See Also

Application Contents Collection



©2001-2015 eMill. All trademarks property of their owners.