Usage:

This shortcode is designed to check for the existence of a $_SESSION variable and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.

[ELSE_is_session] conditional branching is supported.

Shortcode nesting is supported:
[mbr_is_session1] thru [mbr_is_session19]
[ELSE_is_session1] thru [ELSE_is_session19]

Parameters:

var The name of the $_SESSION variable for whose existence you are checking.
Default: none.
Required: yes.
val A value which the $_SESSION variable must hold in order to evaluate to true.
Default: none.
Required: no.

Example:

Will display “Test SESSION is set” if $_SESSION[‘test_session’] exists.

[mbr_is_session var='test_session']
  Test SESSION is set
[ELSE_is_session]
  Test SESSION is NOT set
[/mbr_is_session]

Will display “Test SESSION is set” if $_SESSION[‘test_session’] exists AND its value is 123.

[mbr_is_session var='test_session' val='123']
  Test SESSION is set to 123
[ELSE_is_session]
  Test SESSION is NOT set to 123
[/mbr_is_session]

API:

There is currently no ActiveMember360 API function equivalent for this shortcode.