Captive-Portal
view release on metacpan or search on metacpan
6. SESSION IDLE
A cronjob fires periodically the capo-ctl.pl script checking for
idle or malformed sessions. Idle means, the client didn't send any
packet for a period of time (cfg param: IDLE_TIME = 10min). Clients
sending packets are registered via iptables/ipset in the
capo_activity_ipset.
7. COMFORTABLE SESSION REACTIVATION
For a short period of time (cfg param: KEEP_OLD_STATE_PERIOD = 1h)
the session is still on disc, but in IDLE state. If a client has
cookies enabled and a HTTP request matches the stored IP/MAC/COOKIE
data on disc, the session is reactivated without a login page.
INSTALLATION
Please see the INSTALL file in this distribution.
CONFIGURATION
The configuration file is searched in the following default places:
$ENV{CAPTIVE_PORTAL_CONFIG} ||
$Bin/../etc/local/config.pl ||
$Bin/../etc/config.pl
LOGGING
Logging is handled by the Log::Log4perl module. The logging
configuration is searched in the following default places:
$ENV{CAPTIVE_PORTAL_LOG4PERL} ||
$Bin/../etc/local/log4perl.conf ||
$Bin/../etc/log4perl.conf
LOCAL ADAPTATION
The HTML files are generated from templates (Template-Toolkit syntax).
You should use the original template files as stanzas and put the
locally changed versions into the local template tree. The template
search order prefers the local templates.
The CSS is based on the wonderful blueprint css framework, see
<http://www.blueprintcss.org/>. Of course you may use your own styles if
needed.
The firewall rules and commands are also generated from template files.
Normally there is no need to change the firewall rules but it would be
possible to add some local needed additional rules without changing the
perl code. Be careful, you must understand the algorithm and the
different states. Best you ask the author for any modifications.
I18N
There exists a template tree for each supported language. Some
system/error messages used by the program must also be translated for
the message catalog in the config file.
SEE ALSO
Captive::Portal::Role::Config, capo.fcgi and capo-ctl.pl
CREDITS
Most of the good parts have been implemented by many creative discussion
with my colleague Bernd Leibing.
BUGS AND LIMITATIONS
There are no known problems with this module.
Please report any bugs or feature requests to "bug-captive-portal at
rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Captive-Portal>. I will
be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
AUTHOR
Karl Gaissmaier, "<gaissmai at cpan.org>"
LICENSE AND COPYRIGHT
Copyright 2010-2013 Karl Gaissmaier, all rights reserved.
This distribution is free software; you can redistribute it and/or
modify it under the terms of either:
a) the GNU General Public License as published by the Free Software
Foundation; either version 2, or (at your option) any later version, or
b) the Artistic License version 2.0.
( run in 2.141 seconds using v1.01-cache-2.11-cpan-8f98c5d2c55 )