Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Viewing all open/active sessions?: msg#00013

lang.perl.modules.apache-asp.general

Subject: RE: Viewing all open/active sessions?


Woops, that would be:

sub Session_OnEnd
{
my @ids = @{ $Application->{session_ids} };
@ids = grep { $_ ne $Session->{SessionID} } @ids;
$Application->{session_ids} = \@ids;
}



> -----Original Message-----
> From: John Drago [mailto:john.drago@xxxxxxxxxxx]
> Sent: Thursday, April 13, 2006 12:55 PM
> To: Steve B; asp@xxxxxxxxxxxxxxx
> Subject: RE: Viewing all open/active sessions?
>
> > Is there an easy way to view all open sessions for a
> > given instance of Apache::ASP?
>
> Yes, it is possible.
>
> > I realize that it is
> > possible for me to keep track of this myself, but
> > since the system manages sessions transparently, I
> > really don't want to reinvent the wheel.
>
> If you are using Sync::MLDBM as your persistence mechanism then you
can
> descend through the state directory, looking for sessions that have
not
> timed out.
>
> > Even a
> > command-line perl tool to interrogate a state
> > directory would be great; I just want some way of
> > measuring active usage at any given time.
>
> Another way to go about it might include:
>
> sub Session_OnStart
> {
> push @{ $Application->{session_ids} }, $Session->{SessionID};
> }
>
> sub Session_OnEnd
> {
> my @ids = @{ $Application->{session_ids} };
> @ids = grep { $_ ne $Session->{SessionID} };
> $Application->{session_ids} = \@ids;
> }
>
> ...Then, to get a list of all active sessions, just access
> $Application->{session_ids}
>
> >
> > Thank you for your help!
> > Steve
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: asp-unsubscribe@xxxxxxxxxxxxxxx
> > For additional commands, e-mail: asp-help@xxxxxxxxxxxxxxx
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@xxxxxxxxxxxxxxx
> For additional commands, e-mail: asp-help@xxxxxxxxxxxxxxx
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation