Accessing Session Id and API Server URL parameters with Visualforce

There is a very interesting post over at the blog with sample code for integrating'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.