Cookie Plus
Back to this add-on's main page
View Other Add-ons From Laisvunas
Bug in SET tag with script method - cookie GET won’t work without fix
Bug Report
|
Agregat
|
| Posted: 07 January 2012 10:21 AM |
|
|
|
|
What follows applies to the EE2 version using the script method.
There is a bug in the set tag which adds an extra underscore character between the cookie name and its prefix. So instead of “exp_cookiename” you get “exp__cookiename”.
In order to work around this, therefore, you must add an underscore to the beginning of the name parameter in the GET tag:
{exp:cookie_plus:get name="_cookiename"}
This way, the tag will retrieve the cookie value correctly.
|
|
|
|
|
CJ
|
| Posted: 12 April 2012 12:30 AM |
# 1
|
|
|
|
Thanks for spotting this bug and posting the alert. Saved me a lot of time.
Looks like Line.59:
$name = 'exp__'.$name;
Thanks also for the plugin - excellent work Laisvunas.
Cheers,
Dr C
|
|
|
|