Name

connection_vars — Retrieve all connection variables

Synopsis

any connection_vars ( );
 

Description

This function returns all stored session variables in an array with name/value pairs.

Connection variables do not persist across sessions, one may maintain persistence of variables by storing them in a database table: see the Session Variables Section.

Return Types

Array of name-value pairs of all connection variables.

Examples

Example 24.52. Retrieving Connection Variables

  <?vsp
    declare ses_vars any;
    ses_vars := connection_vars ();
    update session set s_vars = serialize (ses_vars) where s_id = get_keyword ('sid', params);
  ?>