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] and [ELSE_ifsession1] thru [ELSE_ifsession19]
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| var | The session variable that you wish to compare. | None | Yes |
| value | The value against which to compare the session variable. | None | Yes |
Example
Shortcode
[i4w_ifsession var='myVAR' value='12345']
display this content
[ELSE_ifsession]
display this other content
[/i4w_ifsession]