function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
calsoftlabscalsoftlabs 

displaying username

i have put username in coockie object in apex class and how to display username in visualforce page after login ?

 

can anyone help me plz ?

samreet_matharu@psl.co.insamreet_matharu@psl.co.in

Read the cookie using the following method in the controller.

Cookie username= ApexPages.currentPage().getCookies().get('username');

Bind the variable language in the page component
 like:

 

<apex:outputLabel value="{!username}"/>