[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Cookies-Enabled Checking Routine
Why is the cookies-enabled checking routine in the demo like this:
[calc]
my $cname = $Config->{CookieName} || 'MV_SESSION_ID';
$Scratch->{have_cookie} = $Tag->read_cookie($cname)
and delete $Scratch->{tried};
return;
[/calc]
[if scratch have_cookie]
[elsif scratch tried]
You must have cookies set to leave the basket. Check out now or
forever
lose your shopping cart.
[/elsif]
[else]
[set tried]1[/set]
[bounce href="[area ord/basket]"]
[/else]
[/if]
Why isn't it simple like:
[if type=explicit compare="q{[read-cookie MV_SESSION_ID]}"]
[else]
You must have cookies set to leave the basket. Check out now or forever lose
your shopping cart.
[/else]
[/if]
What is the added benefit of the top one?
- Grant
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com