function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vishal yadav 62vishal yadav 62 

How to create Sessions in salesforce? Does Salesforce allows to make Sessions?

I want to integrate Salesforce with some website from which I want to get some data. According to that website API, we have to create Sessions and then other working.
I have searched for sessions in salesforce but have not found any related information that makes me clear about it. 
So please give me some right direction to get my answer. 
Thanks 
vishal
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Vishal Yadav,
May I request you please refer the below link for reference. Hope it will be helpful.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar
vishal yadav 62vishal yadav 62
Hi Rahul,
How to do this things ?
1)Typically used if you are planning to use REST API of platform
2)use enterprise or partner WSDL and use login() call to get sessionId.
can you help me out.
Naval Sharma4Naval Sharma4
Where do you want to access Session_ID? In the Salesforce code or on the website side code?

In Apex you can access.
UserInfo.getSessionId()
In your website code, use the authorization process of REST.
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart_oauth.htm