I'm trying to determine if it is possible to chain two global objects
together via prototype chain.
My setup is basically a "web server" where there are two global
objects in play.
Each trip to the web server (a request) runs server side JS.

The 1st is the "request global'.  This global holds any objects/
functions/properties that live only for the duration of the request
itself.
The 2nd is the "session global".  If a "session" is started during the
request this global is used to hold anything that must be persisted
across requests.
The session global will hold all standard class prototypes (like
Object, String, Function etc) plus anything added by the user.
The request global will NOT have standard classes defined on it.
The request global will be chained to the session global via prototype
chain.
That should enable any scripts run against the request global to see
the same standard classes (prototypes) with each trip back to the
server.
An object named "Session" will be defined on the request global that
points to the session global directly.
This would allow a script to set properties directly on the session
global if necessary to persistent them until the next request.
At the end of each request the "request global" will be destroyed.

I'm a long time Spidermonkey user & V8 newbie, making the leap to V8.
Any help in how to accomplish this would be most appreciated.
Don't spare the details.

Thanks!

Mike

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to