Giving a cookie returns the name of the cookie insede the set of cookies for the domain of the URL connection.
1 http.connection.getCookieName
<http.connection.getCookieName>
<cookie /> !
</http.connection.getCookieName>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ecookie | Cookie | Cookie of which you want to obtain the name. |
Returns | |
---|---|
Type | Description |
string | Returns the name of a cokkie used as argument of the function inside the set of cookies for the domain of the URL. |
Example
Obtain the name of a cookie. Through http.connection.addCookie a cookie is added to the context of the URL connection established by http.connection. Later, the name is recovered through http.connection.getCookieName.
Copy
<xsql-script name='http_connection_cookie_name'> <body> <set name='m_cookie'> <http.connection.getCookieName name='cookie_test' value='value_test'> <http.connection.getCookie name='/PREF'> <http.connection url='http://www.google.es' /> </http.connection.getCookie> </http.connection.getCookieName> </set> <println> <m_cookie /> </println> </body> </xsql-script>