Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Ironically enough, my last project (completed yesterday and now in the polishing phase) involved logging web hits. =)

I had meant my question to be general because it applies to a number of scenarios: RADIUS and the web are only two of them. The problem I need to solve specifically (for which I'm currently using one of the methods I described) is actually to find out how many sessions are open on the web server at a time. They're not web sessions in the sense of those tracked by IP, but login sessions to an application server. Since the server keeps a certain amount of information in memory for each open session (each of which expire after a certain amount of time) we need to know how many sessions it has open.

The admin console has an interface that'll just tell you, but it isn't scriptable. The only other option is to use the session logs, which log session creation and destruction. It's accurate, but annoying. =)

I totally agree with your point on ethics, by the way. Using your method, I can assume a logout after X as well, which works for my application. As a matter of fact, the server will log that as a session close; I'm just looking for a Better Way.
--

Love justice; desire mercy.

In reply to Re: Re: How to do session times The Right Way by strider corinth
in thread How to do session times The Right Way by strider corinth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-28 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found