This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
In a stateless protocol, like HTTP, there is no way to tie any of the server side scoped objects to the length of time that a browser window is open. If you need a server side object to live longer than the time that it takes to respond to an HTTP request you'll need to use either session or context (appication) scope.