Ask a Question related to ASP, Design and Development.
-
Alex #1
try 2 : asp session ref to a global obj: Gurus Required
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"
End
ASP page code:
<%
gobj.connect
' do stuff.
%>
So, what I want to do is:
<%
gobj.SelectUser( "userName" )
'do stuff
%>
Without this causing problems with "userName2"
<%
'called at the same time
gobj.SelectUser( "userName2" )
%>
Tough One Eh?
Likely not possible?
Thanks Gurus.
Alex.
Alex Guest
-
Problem with global.asa database and Session OnEnd
Agggghhhh.... I've read countless posting and still can't get an answer that works. I'm trying to update a record when a session ends. Here's the... -
Global Error handling in Applicatio_Error() of Global.asax
Hi all, For a web application if we are using web farm, and if i want to do Global Error handling can i use Applicatio_Error() method in... -
Hey layers gurus-need an eye here
This is my first "real" attempt at using layers. www.billraydrums.com/7_19_03/new.htm Please take a look-see and give me some hints as to how... -
Creating session variables in GLOBAL.ASA ???
Hey all In my GLOBAL.ASA file I'm trying to create a session variable for reference in the various webpages of my site.... Sub Session_OnStart... -
how to declare session variable in global.asax file
please provide code sample, i was having trouble declaring interger and string variable and can we also initialize them at the same time thanks... -
Bob Barrows #2
Re: try 2 : asp session ref to a global obj: Gurus Required
Alex wrote:
Don't store COM objects in Application (or Session). Especially if they are> 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".
>
ActiveX dll's created with VB. Instantiate the object on each page as
needed. Only free-threaded objects should be stored in Application. VB dll's
are apartment-threaded.
[url]http://www.aspfaq.com/show.asp?id=2053[/url]
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest



Reply With Quote

