Setting Session Variables

This page demonstrates the Hashtag Session Bucket.   The Hashtag Framework uses the PHP Global Variable $_SESSION to fill the Session Bucket.   PHP can be configured to handle session data and cookies in many ways, see PHP Session Handling.   The test value will be shown before and after it is set to a new value.  

The following HTML Form posts back to this page, setting the message value in the URL.


Note:  Hashtag Markup is shown below <# in bold #>.   The value generated by processing the Hashtag Markup, and applying any Variable Contexts, is injected into this HTML page after the ⇒ symbol.  
<#[session.test as html]#> ⇒ 
Processing this Hashtag Markup:
<# set session.test to "Session Set at <#[system.time]#> <#[url.message]#>"; #>

<#[session.test as html]#> ⇒ Session Set at 4:41:03 AM UTC


The Hashtag Markup Language provides many methods for setting variable values, and using them later.

Variable Buckets can hold many values, processed together.   Variable Contexts enable safe injection anywhere.