470,618 Members | 1,822 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,618 developers. It's quick & easy.

Global Variables? Multi-Application Variables?

Ok, first I know there are some db ways around this BUT I'll ask it anyhow:

I have a couple ASP applications running on my server (non .NET)

I would like to be able to get a sum total of how many active sessions I
have running.

I can do this within each app individually as I can just use an Application
variable and add/subtract as the sessions are created or deleted.

I am trying to come up with a sum total of all sessions between the two (or
more) apps running on this server.

That way I can tell if it is safe to reboot the box without affecting anyone
or not.

Bring on the ingenious solutions!

--Tony
Jul 19 '05 #1
5 3913
Couldn't you just create the 2 applications in seperate folders and use
seperate global.asa files? I think it would work out.

Andrew

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #2
there is a component available that will allow you access to the performance
monitor counters. this would probably be the cleanest way to do what you
want. check www.aspfaq.com for the component name (anyone have a link
handy).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Tony Archer" <me@_N05PAM_tonyarcher.com> wrote in message
news:ew**************@TK2MSFTNGP11.phx.gbl...
Ok, first I know there are some db ways around this BUT I'll ask it anyhow:
I have a couple ASP applications running on my server (non .NET)

I would like to be able to get a sum total of how many active sessions I
have running.

I can do this within each app individually as I can just use an Application variable and add/subtract as the sessions are created or deleted.

I am trying to come up with a sum total of all sessions between the two (or more) apps running on this server.

That way I can tell if it is safe to reboot the box without affecting anyone or not.

Bring on the ingenious solutions!

--Tony

Jul 19 '05 #3
I *DO* have seperate apps.

I want to track how many active sessions TOTAL there are between them.

I can track them by setting an App variable in the global.asa file and
adding or subtracting one on creat or delete.

HOWEVER I cannot view from one app "ADMIN_APP" the variables in "CLIENT_APP"

I have tried making the CLIENT_APP use microsoft's XML GET object to a page
within the other app who's sole purpose is to add a count to a variable and
another on session end who's sole purpose is to subtract, but it doesn't
seem to fire.

I have also tried to just have a page on CLIENT_APP which ADMIN_APP will
query with the XML object and all that is on that page is that app's sum.
Unfortunately as the site is secured I cannot perform this action as the
site is re-directed due to a security component we have in place :(

"Andrew J Durstewitz" <ad*********@moreheadassociates.com> wrote in message
news:3f*********************@news.frii.net...
Couldn't you just create the 2 applications in seperate folders and use
seperate global.asa files? I think it would work out.

Andrew

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.

Jul 19 '05 #4
Cool! Thanks!

I think you mean www.perfhound.com

I was using www.sysinternals.com 's psinfo to get uptime before.

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:up**************@TK2MSFTNGP10.phx.gbl...
there is a component available that will allow you access to the performance monitor counters. this would probably be the cleanest way to do what you
want. check www.aspfaq.com for the component name (anyone have a link
handy).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

Jul 19 '05 #5
Unfortunately the object does not work on NT-4 SP6.

Do you have any other suggestions?

"Tony Archer" <me@_N05PAM_tonyarcher.com> wrote in message
news:Oj**************@TK2MSFTNGP10.phx.gbl...
Cool! Thanks!

I think you mean www.perfhound.com

I was using www.sysinternals.com 's psinfo to get uptime before.

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:up**************@TK2MSFTNGP10.phx.gbl...
there is a component available that will allow you access to the

performance
monitor counters. this would probably be the cleanest way to do what you
want. check www.aspfaq.com for the component name (anyone have a link
handy).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Nimmi Srivastav | last post: by
3 posts views Thread by Jim McGivney | last post: by
2 posts views Thread by Henry | last post: by
reply views Thread by raulavi | last post: by
reply views Thread by Duncan Grisby | last post: by
2 posts views Thread by ryan_melville | last post: by
4 posts views Thread by Laurence | last post: by
8 posts views Thread by yinglcs | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.