Apache-Session
view release on metacpan or search on metacpan
use strict;
use Module::Build;
#created by eumm-migrate.pl
my $build = Module::Build->new(
'dist_abstract' => 'A persistence framework for session data',
'license' => 'perl',
'build_requires' => {
'Test::More' => '0.47',
'Test::Exception' => '0.15',
'Test::Deep' => '0.082',
($ENV{TRAVIS}?('Test::Database'=>0, 'DBD::mysql'=>0, 'DBD::Pg' => 0,):()),
},
'dist_author' => 'Casey West <casey[at]geeknest.com>',
'module_name' => 'Apache::Session',
'meta_merge' => {
{
"abstract" : "A persistence framework for session data",
"author" : [
"Casey West <casey[at]geeknest.com>"
],
"dynamic_config" : 1,
"generated_by" : "Module::Build version 0.4211",
"keywords" : [
"CGI",
"session",
"web"
],
---
abstract: A persistence framework for session data
author:
- 'Casey West <casey[at]geeknest.com>'
build_requires:
Test::Deep: 0.082
Test::Exception: 0.15
Test::More: 0.47
dynamic_config: 1
generated_by: 'Module::Build version 0.4211, CPAN::Meta::Converter version 2.150005'
keywords:
- CGI
Makefile.PL view on Meta::CPAN
# 'DB_File' => 0, #test
'Digest::MD5' => 0, #core from 5.8
'IO::File' => 0, #core
},
BUILD_REQUIRES => {
'Test::More' => '0.47', #Build
'Test::Deep' => '0.082', #Build
'Test::Exception' => '0.15', #Build
},
AUTHOR => 'Casey West <casey[at]geeknest.com>',
ABSTRACT => 'A persistence framework for session data',
'PL_FILES' => {},
);
sub WriteMakefile1 { #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
my %params=@_;
my $eumm_version=$ExtUtils::MakeMaker::VERSION;
$eumm_version=eval $eumm_version;
die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
die "License not specified" if not exists $params{LICENSE};
if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
lib/Apache/Session.pm view on Meta::CPAN
#
# Apache::Session
# Apache persistent user sessions
# Copyright(c) 1998, 1999, 2000, 2001, 2004 Jeffrey William Baker (jwbaker@acm.org)
# Distribute under the Perl License
#
#############################################################################
=head1 NAME
Apache::Session - A persistence framework for session data
=head1 SYNOPSIS
use Apache::Session::MySQL;
my %session;
#make a fresh session for a first-time visitor
tie %session, 'Apache::Session::MySQL';
lib/Apache/Session.pm view on Meta::CPAN
tie %session, 'Apache::Session::MySQL', $id;
validate($session{visa_number});
#delete a session from the object store permanently
tied(%session)->delete;
=head1 DESCRIPTION
Apache::Session is a persistence framework which is particularly useful
for tracking session data between httpd requests. Apache::Session is
designed to work with Apache and mod_perl, but it should work under
CGI and other web servers, and it also works outside of a web server
altogether.
Apache::Session consists of five components: the interface, the object store,
the lock manager, the ID generator, and the serializer. The interface is
defined in Session.pm, which is meant to be easily subclassed. The object
store can be the filesystem, a Berkeley DB, a MySQL DB, an Oracle DB, a
Postgres DB, Sybase, or Informix. Locking is done by lock files, semaphores, or
lib/Apache/Session.pm view on Meta::CPAN
sub make_old { $_[0]->{status} &= ($_[0]->{status} ^ NEW) }
sub make_unmodified { $_[0]->{status} &= ($_[0]->{status} ^ MODIFIED) }
sub make_undeleted { $_[0]->{status} &= ($_[0]->{status} ^ DELETED) }
sub make_unsynced { $_[0]->{status} &= ($_[0]->{status} ^ SYNCED) }
#Tie methods
#
#Here we are hiding our complex data persistence framework behind
#a simple hash. See the perltie manpage.
sub TIEHASH {
my $class = shift;
my $session_id = shift;
my $args = shift || {};
lib/Apache/Session/Generate/ModUniqueId.pm view on Meta::CPAN
Store => 'MySQL',
Lock => 'Null',
Generate => 'ModUniqueId',
Serialize => 'Storable',
};
=head1 DESCRIPTION
Apache::Session::Generate::ModUniqueId enables you to use unique id
generated by mod_unique_id as session id for Apache::Session
framework. Using mod_unique_id would ensure higher level uniquess of
id.
=head1 AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=head1 SEE ALSO
lib/Apache/Session/Generate/ModUsertrack.pm view on Meta::CPAN
Lock => 'Null',
Generate => 'ModUsertrack',
Serialize => 'Storable',
ModUsertrackCookieName => 'usertrack', # optional
};
=head1 DESCRIPTION
Apache::Session::Generate::ModUsertrack enables you to use cookie
tracked by mod_usertrack as session id for Apache::Session
framework. This module fits well with long-term sessions, so better
using RDBMS like MySQL for its storage.
=head1 CONFIGURATION
This module accepts one extra configuration option.
=over 4
=item ModUsertrackCookieName
( run in 0.704 second using v1.01-cache-2.11-cpan-df04353d9ac )