You need to sign in to do that
Don't have an account?

get session id from custom controller
I need to get the session id from my custom controller... this is the same value that can be had by using the merge field {!API.Session_ID} from a button, link, etc. Same thing for {!API.Partner_Server_URL_80}.
Thanks!

UserInfo.getSessionId()