MashZone NextGen Session Attributes
MashZone NextGen session attributes use the reserved variable name session. So you declare session attributes as session.attribute-name, just as you would with any variable.
The values for session attributes, however, can also be set in two ways:
Using the
x-p-sessionbinding MashZone NextGenHeader/Parameter in requests to the
MashZone NextGen Serverto save specific data from a mashable or mashup response as a sessionattribute.
You can send this as an HTTP header or as a parameter using MashZone NextGen Connect..You cannot set this headerinformation in <invoke> commands within a mashups script.
Within the <variable> statement in a mashup script thatalso declares the variable.
If this session attribute does not already exist, the<variable> statement creates a new session attribute. If you assign adefault value or construct the variable using literal XML, that value or nodeset is assigned to the MashZone NextGensession attribute.
You can also use the <assign> command in a mashup script to update or assign values to MashZone NextGen session attributes. The output variable in <assign> simply uses the $session.attribute-name syntax.
Once MashZone NextGen session attributes exist, you can use them in mashup scripts just like any other variable, using the syntax $session.attribute-name.
MashZone NextGen session attributes can also hold sets of nodes, unlike user or global parameters. You can use XPath expressions after the attribute name to point to specific nodes within the session attribute.