Subj : ASP server attempt. Is it possible to implement, Session("name")="Damian"; Application("name")="test" To : netscape.public.mozilla.jseng From : Damian Slee Date : Tue Sep 07 2004 01:48 pm I'm looking at modifing our www server embedded in our product with some ASP similar features. Will have 1 JS runtime, and a pool of JS contexts First I thought 'Session' could be a property of the global object, but then you can't pass a arguement to a property. I was planning keeping the data in C++, when the user requested it, convert/copy it to a jsval. Now I'm thinking Session is more like a global JS array. But then its entire contents will be stored against the global object. Which is ok, I don't need to know the infor from C++. Which means I would need to keep 1 global object per user session. Except the script keeps changing depending on whats in each ASP page, so the global object needs to "reset" any script local variables, which means I loose the Session variable. Or can I lock it? That sort of works ok for user session variables, cause that is not shared between users. But what about an Application object which needs to be accessible by all scripts? Can I effectively create a Application object in the Runtime, and define a reference to it in each global object? Anyone have any better solutions or experiences? Thanks, Damian --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004 .