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

You are not logged in.

Announcement

#1 2015-04-01 16:45:59

skardian
Member
Registered: 2015-03-27
Posts: 7

Chat session lost when changing pages

I have read through a number of forum posts and the online documentation but I am still unable to retain the chat session when switching between pages on the site. I have checked the configuration files in accordance with the documentation posted online.

  • Use secure cookies is disabled

  • Disable HTML5 storage is checked

  • Reopen chat functionality enabled is checked

  • Reopen closed chat as new is checked

  • Automatically reopen chat on widget open is checked

  • Allow user to reopen closed chats is checked

The following is the script embedded in the site:

var LHCChatOptions = {};
        LHCChatOptions.opt = { widget_height: 340, widget_width: 300, popup_height: 520, popup_width: 500, domain: 'livechat-dev.benefitalign.com' };
        (function () {
            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
            var refferer = (document.referrer) ? encodeURIComponent(document.referrer.substr(document.referrer.indexOf('://') + 1)) : '';
            var location = (document.location) ? encodeURIComponent(window.location.href.substring(window.location.protocol.length)) : '';
            po.src = '//livechat-dev.benefitalign.com/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true/(department)/0/1/2/3?r=' + refferer + '&l=' + location;
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
        })();

Offline

#2 2015-04-01 17:04:36

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

Re: Chat session lost when changing pages

Domain invalid.
Please use just benefitalign.com it has to be site domain where embed code is included.

Offline

#3 2015-04-01 17:57:10

skardian
Member
Registered: 2015-03-27
Posts: 7

Re: Chat session lost when changing pages

Would I make that change in both the .opt location as well as the po.src?

Offline

#4 2015-04-01 19:18:30

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

Re: Chat session lost when changing pages

Just change domain: 'livechat-dev.benefitalign.com'
this to
domain: 'benefitalign.com'

It has to be domain where lhc javascript code is embeded. That's all.

Offline

Board footer