+ Start a Discussion

how to set apex controller variable value when visual force page loads

I need to set server url and sesssion id on apx controlle when page loads, Any thoughts!!!!!!!!!!!!!
it requires a mouse click to load session id and server url. But I need on page load..
If you want to get these variables without user interaction check out the following post on the forums; http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=10618&jump=true#M10618