CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Perl

 [Tip] CCSetCookie does not replace existing cookie

Print topic Send  topic

Author Message
roeya


Posts: 180
Posted: 06/07/2009, 11:06 PM

Important observation regarding cookies and Perl

CCSetCookie can create a cookie with the same name several times. It is not checking if the cookie exists it just creates a new cookie and insert it to the cookie array that will be send to the browser.
If you use a cookie in the program as a state variable that changes during the run like this:

before show row
CCSetCookie('last_item', $Component->{id}->GetValue());

You will have many cookies with the same name one after the other no exactly what you expected.

So never use SetCookie for the same cookie in a loop of some kind as the cookie is not replaced it is added and there is a limit to the number of cookies that can be used per domain (~40 depends on browser and version)
_________________
http://www.infoneto.com/
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.