You need to sign in to do that
Don't have an account?
User details are retrieved from Guest user instead of authenticated user (Live Agent)
So we are working on the new live agent with sites and for this we created a vf page for the pre-chat form.
We want to automatically populate that name and email address from the details of the authenticated (customer portal user) so that the user doesn't have to enter the all detail on the pre chat form I did something like this
<apex:page> Hello {!$User.FirstName}! </apex:page>
The problem is that even if the user is logged in, the page is retrieving the details of the Guest user and I don't understand why.
So even if I am logged in the customer portal as TestUser, the page returns "Hi guestuser". What is the logic behind this, how can I sure that the authenticated session is passed to any page?
Thanks in advance.
Hi
You can try this code, hope it will help you.
[If you got answer from my post please mark it as solution.]
Thanks.
Kapil