i4w_ifsession

Usage:

This shortcode is used to retrieve the value held in a server-side session variable and compare it with a given value. The session variable will have to have been previously set either programmatically through your own script or through the [i4w_session_set] shortcode.

[ELSE_ifsession] conditional branching is supported.

Shortcode nesting is supported:
[i4w_ifsession1] thru [i4w_ifsession19]

[ELSE_ifsession1] thru [ELSE_ifsession19]

Parameters:

varThe session variable that you wish to display in place of the shortocde.
Default: none.
Required: yes.
valueThe value against which to compare the session variable.
Default: none.
Required: yes.

Example:

[i4w_ifsession var='myVAR'  value='12345']
  display this content
[ELSE_ifsession]
  display this other content
[/i4w_ifsession]

API:

There is no API function equivalent for this shortcode.