Plugin

Community
Support

Laisvunas does not actively monitor this forum
(but you can still get help from other EE users).

EE 1
EE 2
Cookie Plus

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

Bug in SET tag with script method - cookie GET won’t work without fix

Bug Report

Agregat
Agregat

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
# 1
CJ

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