Connecting Tech Pros Worldwide Forums | Help | Site Map

Global Variables? Multi-Application Variables?

Tony Archer
Guest
 
Posts: n/a
#1: Jul 19 '05
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



Andrew J Durstewitz
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Global Variables? Multi-Application Variables?


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.
Mark Schupp
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Global Variables? Multi-Application Variables?


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:ewM2wDqsDHA.3140@TK2MSFTNGP11.phx.gbl...[color=blue]
> Ok, first I know there are some db ways around this BUT I'll ask it[/color]
anyhow:[color=blue]
>
> 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[/color]
Application[color=blue]
> 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[/color]
(or[color=blue]
> more) apps running on this server.
>
> That way I can tell if it is safe to reboot the box without affecting[/color]
anyone[color=blue]
> or not.
>
> Bring on the ingenious solutions!
>
> --Tony
>
>[/color]


Tony Archer
Guest
 
Posts: n/a
#4: Jul 19 '05

re: Global Variables? Multi-Application Variables?


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" <adurstewitz@moreheadassociates.com> wrote in message
news:3fc231b4$0$200$75868355@news.frii.net...[color=blue]
> 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.[/color]


Tony Archer
Guest
 
Posts: n/a
#5: Jul 19 '05

re: Global Variables? Multi-Application Variables?


Cool! Thanks!

I think you mean www.perfhound.com

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

"Mark Schupp" <mschupp@ielearning.com> wrote in message
news:upsvJ9qsDHA.1760@TK2MSFTNGP10.phx.gbl...[color=blue]
> there is a component available that will allow you access to the[/color]
performance[color=blue]
> 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
>[/color]


Tony Archer
Guest
 
Posts: n/a
#6: Jul 19 '05

re: Global Variables? Multi-Application Variables?


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:OjmSeF6sDHA.2416@TK2MSFTNGP10.phx.gbl...[color=blue]
> Cool! Thanks!
>
> I think you mean www.perfhound.com
>
> I was using www.sysinternals.com 's psinfo to get uptime before.
>
> "Mark Schupp" <mschupp@ielearning.com> wrote in message
> news:upsvJ9qsDHA.1760@TK2MSFTNGP10.phx.gbl...[color=green]
> > there is a component available that will allow you access to the[/color]
> performance[color=green]
> > 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
> >[/color]
>
>[/color]


Closed Thread