varinfo ENV Vs COOKIE

Post Reply
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

varinfo ENV Vs COOKIE

Post 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
gaurav.shetti
Posts: 119
Joined: Fri Feb 27, 2009 9:09 am

varinfo ENV Vs COOKIE

Post 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
User avatar
John
Site Admin
Posts: 2595
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

varinfo ENV Vs COOKIE

Post 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.
John Turnbull
Thunderstone Software
Post Reply