# Cfcookie not obeying encodevalue=false/no

**URL:** <https://dev.lucee.org/t/cfcookie-not-obeying-encodevalue-false-no/3650>\
**Category:** support\
**Created:** [March 21, 2018, 6:00pm UTC](https://dev.lucee.org/t/cfcookie-not-obeying-encodevalue-false-no/3650 "2018-03-21T18:00:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jab1000](https://dev.lucee.org/user_avatar/dev.lucee.org/jab1000/32/1127_2.png) [@jab1000](https://dev.lucee.org/u/jab1000)\
**Post date:** [March 21, 2018, 6:00pm UTC](https://dev.lucee.org/t/cfcookie-not-obeying-encodevalue-false-no/3650/1 "2018-03-21T18:00:43Z")

</div>

We have a project we are working to create a cookie in CF that is consumed later by PHP. Challenge is Lucee (latest version) is unfortunately always encoding the cookie even though `encodevalue=false` or `encodevalue="no"` is passed in.

It is supposed to be stored like this:

```auto
37|Rg2saj7vK5a0NqDORSWp5h9faCsjKEgEnKRg2hSLr5orSMhscG8DIB3wwuTu|$2y$10$sD1UTiv3k4VgJ2eSwj1i9.niUFuRGTk2XlLr6O1xV49rfCgIdGwdK

```

Lucee is always storing it as this though:

```auto
37%7CRg2saj7vK5a0NqDORSWp5h9faCsjKEgEnKRg2hSLr5orSMhscG8DIB3wwuTu%7C%242y%2410%24sD1UTiv3k4VgJ2eSwj1i9.niUFuRGTk2XlLr6O1xV49rfCgIdGwdK

```

Since I need the cookie to never expire, I need to use cfcookie (instead of `cookie.varName`).

Yes, I could create some js code to store the cookie instead of Lucee but that seems rather silly when the `encodevalue=false` directive should work.

Thoughts?

Thanks!  
Jeremy

---

<div class="post-metadata">

**Author:** ![cfmitrah](https://dev.lucee.org/user_avatar/dev.lucee.org/cfmitrah/32/140_2.png) [@cfmitrah](https://dev.lucee.org/u/cfmitrah)\
**Post date:** [March 27, 2018, 12:34pm UTC](https://dev.lucee.org/t/cfcookie-not-obeying-encodevalue-false-no/3650/2 "2018-03-27T12:34:07Z")

</div>

Hi @jab1000,

I’ve tested this lucee doesn’t consider cookie encodedvalue=false it stores as encoded value even if we given encodedvalue=false. Can you raise a ticket in jira. We ill addressed it ASAP.

Jira [https://luceeserver.atlassian.net/](https://luceeserver.atlassian.net/)
