Working with Session, Cookie, Parameters(Variables)

Shortcode: aw2_set_session, aw2_set_cookie, aw2_set_param

To set a Session, Cookie or Parameter


To work with array items see working_with_default_collection_or_array

Parameters

——————-


key,value pairs to create parameters


key: Key parameter if one key value pair is being defined. Use if there is a If Cond


value: Value parameter if one key value pair is being defined. Use if there is a If Cond


content_as_key=key To see the inner content as a parameter against the key.


content_as_array=key To convert the json to object as a parameter against the key.


overwrite: Defaults to yes. Set to ‘no’ to not overwrite if variable already exists. Set to empty if you want to create new variable or overwrite if existing is empty


from_request: A comma separated string. Will create parameters with the same name


default: The default value if the request parameter does not exist


cond: any If conditions. If a condition is passed then only define one parameter using key and value as parameters

Examples

—————–

Shortcode: aw2_param, aw2_session, aw2_cookie, aw2_request

To get a param, cookie, session, request


To work with array items see Working with default_collection or Array

Parameters

——————-


main: The parameter to get. Can be specified directly


default: The default value if the parameter does not exist


separator: In case it is an array the separator to use to implode. If set to json then will convert to json.


set_param='': defaults to empty. the variable to store the return value in. If empty then will throw out the value