Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
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
I’m not sure what exactly you are asking? But perhaps this might help
https://doc.livehelperchat.com/docs/jav … -arguments
Offline
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
Would I be you, I would just pass encrypted variable and in extension use it directly from chat object. Widget does not have php sessions and is stateless, so sessions won’t work.
Offline
I'll look into that, thanks
Offline
Thanks for sharing
Offline
Pages: 1