Page 1 of 1

varinfo ENV Vs COOKIE

Posted: Thu Feb 04, 2010 6:53 am
by gaurav.shetti
Hi,

I observed that in varinfo feature has two options:

ENV: environment variable. with sub variables as
HTTP_ACCEPT_LANGUAGE
HTTP_CONNECTION
HTTP_COOKIE.. etc

COOKIE: cookie variables. with sub variables as :
FLD%5FLOGINDETAIL
FLD%5FPERSON%5FDETAILS
FLD%5FSMUSER

the content of the values inside various variables inside this command:
<varinfo list ENV ><$ENV=$ret>
<loop $ENV>
<if $ENV eq "HTTP_COOKIE">
<getvar $ENV><$HTTP_COOKIE1=$ret></if>
</loop>
are same as in these instructions:
<varinfo list COOKIE>
<$vars=$ret>
<loop $vars>
<if $vars eq $cookiename>
<getvar $vars><$ck=$ret></if>
<if $vars eq "SMSESSION">
<getvar $vars><$ssosession=$ret></if>
<if $vars eq "FLD%5FLOGINDETAIL"><getvar $vars><$a=$ret></if>
<if $vars eq "FLD%5FPERSON%5FDETAILS"><getvar $vars><$b=$ret></if>
<if $vars eq "FLD%5FSMUSER"><getvar $vars><$c=$ret></if>
</loop>

what is the diff between both these options?
where are these options set?
How can I access session variables apart from the above mentioned method in thunderstone?

Thanks,
Jitish

varinfo ENV Vs COOKIE

Posted: Thu Feb 04, 2010 7:45 am
by gaurav.shetti
One more question.
If I try manipulating the cookie value by accessing the Cookie variables. Does it change both the values:
HTTP_COOKIE and <varinfo list COOKIE>

~ Jitish

varinfo ENV Vs COOKIE

Posted: Thu Feb 04, 2010 10:27 am
by John
The HTTP_ environment variables are set by the web server and correspond to the HTTP headers sent by the browser/web client to the web server.

Vortex automatically extracts cookie variables, and they are immediately available as for example $SMSESSION in your example above.

$HTTP_COOKIE will not be changed if you change a cookie variable such as $SMSESSION.