$Web Cookie Name: Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_Cookie_Name}}
{{DISPLAYTITLE:$Web_Cookie_Name}}
<span class="pageSubtitle"><section begin="desc" />Name of cookie<section end="desc" /></span>
<span class="pageSubtitle">Name of cookie</span>
 
$Web_Cookie_Name retrieves the name of a cookie.
<var>$Web_Cookie_Name</var> takes a single argument and returns a string, or null if the number references a non-existing cookie.


==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %rc = $Web_Cookie_Name( cookie_number )
<p class="syntax"><span class="term">%rc</span> = <span class="literal">$Web_Cookie_Name</span>(<span class="term"> cookie_number</span> )
<section end="syntax" /></p>
</p>


===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%rc</th>
<td>A string to contain the returned cookie name. The string is a null if <var class="term">cookie_number</var> references a non-existing cookie.
<tr><th>cookie_number</th>
<tr><th>cookie_number</th>
<td>The cookie number in the list of received cookies.
<td>The cookie number in the list of received cookies.
</td></tr></table>
</td></tr></table>


==Examples==
==Examples==
Line 23: Line 21:
END FOR
END FOR
</p>
</p>


==See also==
==See also==

Latest revision as of 21:53, 5 June 2013

Name of cookie

Syntax

%rc = $Web_Cookie_Name( cookie_number )

Syntax terms

%rc A string to contain the returned cookie name. The string is a null if cookie_number references a non-existing cookie.
cookie_number The cookie number in the list of received cookies.

Examples

In the following code, the name of every cookie sent by a browser is placed into a string array.

%X = $Web_Num_Cookie FOR %Y FROM 1 TO %X %HDR_FIELD(%Y) = $Web_Cookie_Name(%Y) END FOR

See also