Download the PHP package aoepeople/aoe_sessionvars without Composer
On this page you can find all versions of the php package aoepeople/aoe_sessionvars. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aoepeople/aoe_sessionvars
More information about aoepeople/aoe_sessionvars
Files in aoepeople/aoe_sessionvars
Package aoe_sessionvars
Short Description Capture variables coming in from outside
License OSL-3.0
Homepage https://github.com/AOEpeople/Aoe_SessionVars
Informations about the package aoe_sessionvars
AOE SessionVars
Description
The purpose of this module is to provide a generic way to "capture" variables coming in from outside (via url parameter or cookie) and store them in the specified session, so it can be consumed by other modules from there
Authors/Contributors
Usage
On every page hit incoming variable should be evaluated and validated against the regex pattern. Then stored in the session. If a value already exist in the session and a new value is being provided then the new one should overwrite the existing one.
How it works
Add the variables in your module's config.xml which needs to be set in session
Example:
In above example, If URL contains the parameter as 'cp' or 'MAGENTO_CP' cookie is set, value of 'cp' or 'MAGENTO_CP' will be set in specified session (scope).
It also come with a concept to easily consume the session variable in CMS blocks (or other text that's processed with the template filters).
Example:
Incoming request: http://www.example.com/?lang=en-ca&country=ca
CMS content: Click here
All versions of aoe_sessionvars with dependencies
aoepeople/aoe_extendedfilter Version *