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

How can get Session Id from apex class by username & password?
I want create a custom Login Page.
After login will go to a Force.com site.
This site using a PushTopic, so i must get Sesstion Id of User.
How can get Session Id from apex class by username & password?
After login will go to a Force.com site.
This site using a PushTopic, so i must get Sesstion Id of User.
How can get Session Id from apex class by username & password?
Refer the following link
https://www.sundoginteractive.com/blog/session-id-using-login-partner-api
https://salesforce.stackexchange.com/questions/178213/how-to-get-session-id-of-salesforce-site
Thanks
I not see send username and password to can login.
You can follow this code:
I have tried to use this method but it's not working. I have got 'Internal Server Error -500'
https://salesforce.stackexchange.com/questions/53969/salesforce-api-login-status-server-error-statuscode-500
1. Set Your Ip in trusted IP Range.GoTo-->Setup > Security Controls > Network Access: Trusted IP Ranges
2. Set Password+SecruityToken. GoTo --> Administration Setup > My Personal Information > Reset my Security Token