1.1releasedSession Monster
Easily create and remove sessionis by appending values to URLs
Clone URLhttps://github.com/symphonists/sessionmonster.git
Add as a submodulegit submodule add https://github.com/symphonists/sessionmonster.git extensions/sessionmonster --recursive
Compatibility
2.x.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1.1 | 1.1 | 1.1 | 1.1 | No | No | No | No | No | No | No | No | No | No | No | No | No | No |
Readme
Session Monster
Installation
- Upload
sessionmonster
, to your/extensions
folder - Navigate to 'System' > 'Extensions' and enable it
- Add the "Session Monster: Add GET variable to Session" Event to your page. Documentation on the Event can be viewed via the Components area of the Symphony Admin.
Usage
After attaching the event to a page, request it with a URL such as:
/my-page/?colour=red&shape=square
This will store these two values into the Session Monster session. To unset session values, send an empty string:
/my-page/?shape=
Values added to the session via session monster will show in the page params like so:
$sessionmonster-colour = red
$sessionmonster-shape = square
And in the page XML as:
<data>
<params>
...
<sessionmonster-colour>red</sessionmonster-colour>
<sessionmonster-shape>square</sessionmonster-shape>
</params>
...
</data>
Version history
Works up to Symphony 2.3
Works up to Symphony 2.2.x
Symphony 2.0.6 to 2.2.x