Accessing Session Id and API Server URL parameters with Visualforce
February 1st, 2009
There is a very interesting post over at the Salesforce.com blog with sample code for integrating Salesforce.com’s session ID and server URL with composite applications. I never thought about this approach before but it may sure come in handy in the future.
Categories: Salesforce, Visualforce













Hi Jeff,
Can you please let me know if i have the session id of other salesforce user session than can I call some VF page with that user scope.
Deepak, once you authenticate and receive a session, the calls to salesforce use that user’s security settings and privileges.
We are trying to build website using force.com sites.we are using one custom object as to store sign up details of user.
After login into website we want to maintain session for the user till he logged out from site.we are using Record id of the Custom object as the user id.Can i pass this one to other visuvalforce pages as a session parameter.Can you please give a sample code for this?
Thanks and Regards,
venkatesh.
@Venkatesh, I think if you are trying to develop your own authentication mechanism with Force.com Sites you may run into some licensing issues.