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

You are not logged in.

Announcement

#1 2020-05-15 18:20:49

shotgun
Member
Registered: 2020-04-30
Posts: 39

Parent Window

Hello, is it possible to get the session from the host or parent window. I am trying to connect the helper chat to the host store to see if the current chatter is logged into the store. Maybe through the LHC_API string from the embed, thanks in advance.

Offline

#2 2020-05-15 18:47:58

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

Re: Parent Window

I’m not sure what exactly you are asking? But perhaps this might help
https://doc.livehelperchat.com/docs/jav … -arguments

Offline

#3 2020-05-15 19:02:55

shotgun
Member
Registered: 2020-04-30
Posts: 39

Re: Parent Window

I am trying to,
HOST SITE - sets when user logins in
$_SESSION['user_id'] = '13467';

LIVE HELPER CHAT - is chatting user logged into store
echo $_SESSION['user_id']

And then I will put in extension that checks if logged in, thanks

I was thinking
LHC_API.args = {mode:'widget',lhc_base_url:'',user_id:$userID}  sort of thing.

Last edited by shotgun (2020-05-15 19:07:21)

Offline

#4 2020-05-15 19:05:48

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

Re: Parent Window

Would I be you, I would just pass encrypted variable smile and in extension use it directly from chat object. Widget does not have php sessions and is stateless, so sessions won’t work.

Offline

#5 2020-05-15 19:13:18

shotgun
Member
Registered: 2020-04-30
Posts: 39

Re: Parent Window

I'll look into that, thanks

Offline

#6 2020-10-07 07:28:03

brucecy92
New member
Registered: 2020-06-02
Posts: 2

Re: Parent Window

Thanks for sharing

Offline

Board footer