$Web Cookie Name: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (→Syntax) |
||
Line 3: | Line 3: | ||
$Web_Cookie_Name retrieves the name of a cookie. | $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" /> % | <p class="syntax"><section begin="syntax" /> %rc = $Web_Cookie_Name( cookie_number ) | ||
<section end="syntax" /></p> | <section end="syntax" /></p> | ||
===Syntax terms=== | |||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>cookie_number</th> | <tr><th>cookie_number</th> | ||
Line 15: | Line 16: | ||
==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><var>[[$Web_Cookie_Parm]]</var> | <li><var>[[$Web_Cookie_Parm]]</var> | ||
<li><var>[[$Web_Num_Cookie]]</var> | <li><var>[[$Web_Num_Cookie]]</var> | ||
<li><var>[[$Web_Set_Cookie]]</var> | <li><var>[[$Web_Set_Cookie]]</var> | ||
<li><var>[[$Web_Get_Cookie_Lstr]]</var> | <li><var>[[$Web_Get_Cookie_Lstr]]</var> | ||
<li><var>[[$Web_Set_Cookie_Lstr]]</var> | <li><var>[[$Web_Set_Cookie_Lstr]]</var> |
Revision as of 20:32, 12 June 2012
<section begin="desc" />Name of cookie<section end="desc" />
$Web_Cookie_Name retrieves the name of a cookie. $Web_Cookie_Name takes a single argument and returns a string, or null if the number references a non-existing cookie.
Syntax
<section begin="syntax" /> %rc = $Web_Cookie_Name( cookie_number ) <section end="syntax" />
Syntax terms
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