Com objects using the same global obj ref.

A

Alex

I'm sure that the following is possible, I just need a little help
please.

I have a object which I declare as a application object "gObj".

I need to use "gObj" with all sessions. I need "gObj" to have access
based on the user's id. Is this possible without creating multiple
gObj's?

Code would be something like:

Application_OnStart
set gobj = Server.Create( "someDll" )

gobj.uname = "somename"
gobj.port = 1234
gobj.pwd = "pwd"
 
C

Cowboy \(Gregory A. Beamer\)

First thought: Use an ActiveX EXE for the global functionality. You can then
use GetObject(). A COM+ component might help in this regard, but I am not
sure. This is just a thought, as I have not tested any of this.

The best method, if you have the inclination (which I know will work) is to
extend the IIS model with an ISAPI component. You have to use C++ for COM
based implementations (ASP, for example), so it is not an easy matter. But,
it can be done.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top