Stores an object in the session with the name of the indicated attribute.

1 http.session.putAttribute

<http.session.putAttribute name='name'>
    <value /> !
</http.session.putAttribute>

Exceptions

script is not in http request mode

It is called from the command line because the request HTTP servlet does not exist.

Example
Copy
<xsql-script name='http_connection_putAttribute'>
    <body>
        <println>
            <http.session.putAttribute name='dato'><string>2</string></http.session.putAttribute>
        </println>
    </body>
</xsql-script>