I remember that the session information menu option used to display a session id value in the workbench? Is that no longer visible?

I can still get this by executing this line of code in the Apex Execute box.

  • 2
    It appears so... It's not showing for me either under Session Information. Thanks for the UserInfo.getSessionId() solution though. – benedwards44 Jul 19 '16 at 22:30
  • yep looks like it's gone, but thanks for the apex execute solution :) – MarcusMaximi Feb 8 '17 at 12:01

After summer'17, it's gone from Debug logs as well. System.debug(UserInfo.getSessionId()) prints SESSION_ID_REMOVED

If you want to get session id, you can try printing this in VF page with {!GETSESSIONID()}, like


Yeah.. Unfortunately it's gone..

enter image description here

But, thanks for alternative solution.

DeveloperConsole > OpenExecuteAnonymousWindow > [Run below code to retrieve your session ID]


Note: Session is valid for 2 hours.

  • does not work either in developer console --> anony window get this error SESSION_ID_REMOVED – Nick Kahn Jul 1 '17 at 21:02
  • Yeah they removed it for security reason. Check this thread for alternative solution – Kamruzzaman Jul 5 '17 at 12:48

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.