Just wondering if there was a practical use for this trigger. Any if so, when you set the variables, how do you then get those later on?
You use the session vars to populate dynamic root nodes is listing and other dynamic options in Matrix. So, for example, you could store someone's favorite gallery (an asset ID) in their session and then use that to show new items from that image gallery.
So that session var will be lost once that user closes their browser?
That depends on your setting for Session Expiry in the Global Prefs section of System Config. You can allow sessions to remain until a certain period of inactivity (eg. 5 days without using the site). You can also configure this per user group if you want authors to have different settings to site visitors.
Greg, is there a keyword that allows you to print that session variable on a page? I was sure there was a way to do this in the parse file, but what a keyword in a bodycopy for this?
I dont think there is one.