<html>
    <head></head>
    <body>
        <h1>Session Demo</h1>
        <?
        SESSION activate
        ?>
        <p>Here's some stuff about your session:
        <ul>
            <li>Your session ID is [SESSION id]
            <li>SESSION is_new_session -&gt; [SESSION is_new_session]
            <li>SESSION new_session_reason -&gt; [SESSION new_session_reason]
        </ul>
        <p>Fetching key 'foo' from package 'dummy': <?
            set data [SESSION fetch dummy foo]
            puts "Fetch status is '[SESSION status]'<br>"
            if {$data == ""} {
                puts "No data.  Storing data 'bar' with key 'foo' package 'dummy'.<p>"
                SESSION store dummy foo bar
            } else {
                puts "<b>$data</b>"
            }
        ?></p>
    </body>
</html>
