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>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the attribute or session variable. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evalue | object | Object to store in the session. |
Returns | |
---|---|
Type | Description |
object | Returns the object stored in the session. |
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>