$Web Cookie Name: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(12 intermediate revisions by 4 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.
==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===
$Web_Cookie_Name takes a single argument and returns a string, or null if the number references a non-existing cookie.
<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==
 
In the following code, the name of every cookie sent by a browser is placed into a string array.
In the following code, the name of every cookie sent by a browser is placed into a string array.
<p class="code"> %X = $Web_Num_Cookie
<p class="code">%X = $Web_Num_Cookie
FOR %Y FROM 1 TO %X
FOR %Y FROM 1 TO %X
%HDR_FIELD(%Y) = $Web_Cookie_Name(%Y)
%HDR_FIELD(%Y) = $Web_Cookie_Name(%Y)
END FOR
END FOR
</p>
</p>


 
==See also==
See also:
<ul>
<ul>
 
<li>[[Janus Web Server application coding considerations#Understanding cookies|"Understanding cookies"]]
<li>[[$Web_Cookie_Len]]  
<li><var>[[$Web_Cookie_Len]]</var>
<li>[[$Web_Cookie_Parm]]  
<li><var>[[$Web_Cookie_Parm]]</var>
<li>[[$Web_Num_Cookie]]  
<li><var>[[$Web_Num_Cookie]]</var>
<li>[[$Web_Set_Cookie]]  
<li><var>[[$Web_Set_Cookie]]</var>
<li>  
<li><var>[[$Web_Get_Cookie_Lstr]]</var>
<li>[[$Web_Get_Cookie_Lstr]]  
<li><var>[[$Web_Set_Cookie_Lstr]]</var>
<li>[[$Web_Set_Cookie_Lstr]]
</ul>
</ul>




[[Category:Janus Web Server $functions|$Web_Cookie_Name]]
[[Category:Janus Web Server $functions|$Web_Cookie_Name]]

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