Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2020-04-27 10:39:33

ahti
New member
Registered: 2020-04-27
Posts: 2

Illegal cookie syntax

We tried to integrate Live Helper Chat into our system. Unfortunately it cannot be done because Live Helper Chat creates invalid cookies. As a result, other modules crash when trying to read cookies.
Example cookies header set by Live Helper Chat:

Cookie: testcookie; lhc_per={"vid":"12f09047bef5d771470e"}

Here are several errors. According to RFC6265 cookie name must be a token, "testcookie" has no name at all.  Cookie value may include  %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E.  Double quote (%x22) cannot be present in cookie value.

See RFC6265 (HTTP State Management Mechanism)

Offline

#2 2020-04-27 10:55:45

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Illegal cookie syntax

Hi,

Thanks for notice. I'll fix both of these during this week.

Offline

#3 2020-04-27 12:18:41

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Illegal cookie syntax

These two commits will make it compatible. Please test if you can. Just update to master branch. Make sure you clear cookies as index.js file cache naturally is removed every day. smile


https://github.com/LiveHelperChat/liveh … 65e35b5e81
https://github.com/LiveHelperChat/liveh … 13d4e69636

I have updated demo if you want to test.

Offline

#4 2020-04-27 13:19:36

ahti
New member
Registered: 2020-04-27
Posts: 2

Re: Illegal cookie syntax

Thank you, it works fine!

Offline

Board footer