$Web Cookie Name: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (→Syntax) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:$Web_Cookie_Name}} | {{DISPLAYTITLE:$Web_Cookie_Name}} | ||
<span class="pageSubtitle" | <span class="pageSubtitle">Name of cookie</span> | ||
==Syntax== | ==Syntax== | ||
<p class="syntax">< | <p class="syntax"><span class="term">%rc</span> = <span class="literal">$Web_Cookie_Name</span>(<span class="term"> cookie_number</span> ) | ||
< | </p> | ||
===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== | |||
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 | |||
%HDR_FIELD(%Y) = $Web_Cookie_Name(%Y) | |||
END FOR | |||
</p> | </p> | ||
==See also== | |||
See also | |||
<ul> | <ul> | ||
<li>[[Janus Web Server application coding considerations#Understanding cookies|"Understanding cookies"]] | |||
<li>[[<var>$Web_Cookie_Len]]</var> | <li><var>[[$Web_Cookie_Len]]</var> | ||
<li> | <li><var>[[$Web_Cookie_Parm]]</var> | ||
<li> | <li><var>[[$Web_Num_Cookie]]</var> | ||
<li> | <li><var>[[$Web_Set_Cookie]]</var> | ||
<li> | <li><var>[[$Web_Get_Cookie_Lstr]]</var> | ||
< | <li><var>[[$Web_Set_Cookie_Lstr]]</var> | ||
<li> | |||
</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