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":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.