9

is it possible to retrieve sessionid of a user from a visualforce page without using any custom controller?

15

Per the documentation: Global variables - $Api

You can use this expression in your VF page markup.

{!$Api.Session_ID}

  • both are same thing or there is any difference ?? – user133421 Oct 22 '13 at 0:22
  • 4
    They are the same thing — there's a heap of global variables available in VF to help with scenarios like this one – Matt Lacey Oct 22 '13 at 0:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.