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
Sessions to SFDC can be established via below mechanisms
1)create a connected app in SFDC and do an oauth of external system with SFDC.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.
If you need details you will need to deep dive the documentation on this.
When using the $Cache.Session global variable, fully qualify the key name with the namespace and partition name. This example is an output text component that retrieves a cached value from the namespace myNamespace, partition myPartition, and key key1.
1 Unlike with Apex methods, you can’t omit the myNamespace.myPartition prefix to reference the default partition in the org.
Use local instead of the namespace name to refer to the org’s namespace, whether or not a namespace is defined for the org.
1 If the cached value is a data structure that has properties or methods, like an Apex List or a custom class, those properties can be accessed in the $Cache.Session expression by using dot notation. For example, this markup invokes the List.size() Apex method if the value of numbersList is declared as a List.
1 This example accesses the value property on the myData cache value that is declared as a custom class.