function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
It's one of these but I can't recall specifically. I think it also depends on if the user is accessing the VF page through logging in vs accessing a public VF page (Sites). You'll have to experiment.
system.debug(ApexPages.CurrentPage().getHeaders().get('x-original-remote-addr'));system.debug(ApexPages.CurrentPage().getHeaders().get('x-original-remote-host'));system.debug(ApexPages.CurrentPage().getHeaders().get('x-Salesforce-SIP'));
All Answers
It's one of these but I can't recall specifically. I think it also depends on if the user is accessing the VF page through logging in vs accessing a public VF page (Sites). You'll have to experiment.
system.debug(ApexPages.CurrentPage().getHeaders().get('x-original-remote-addr'));
system.debug(ApexPages.CurrentPage().getHeaders().get('x-original-remote-host'));
system.debug(ApexPages.CurrentPage().getHeaders().get('x-Salesforce-SIP'));