Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I'm thinking of redoing the way our environment does web page timeouts.

Right now, we have a C program that times people out. It isn't very integrated with Apache, and it seems to be pretty obfuscated.

Anyone know of a good starting point for Perl/Apache modules that will give me a good foundation for this custom handler? I need to have a timestamp sent to a file server-side when someone authenticates, that timestamp updated each time they make a request, and if that timestamp is ever more than 15 minutes old, force them to log back in.

I also need to have a way to exempt certain directories.

I was thinking of doing this using a perl module for Apache, called from a .htaccess file, and Realm specific. I will have mod_perl built into the webservers, so I have complete access to the Perl version of the Apache API. This will be Stronghold server (v. 3.0/Apache 1.3.12).

Any suggestions, hints, comments, answers, or rants are welcome.

I have the Eagle book, so I'll be looking in it.

Thanks,

J. J. Horner

In reply to Apache module starting points by jjhorner

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 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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-08-11 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?