NAME
Apache2::ASP::Application::MySQL - MySQL-persisted Application state for Apache2::ASP
SYNOPSIS
In your httpd.conf:
PerlSetEnv APACHE2_ASP_APPLICATION_MANAGER Apache2::ASP::Application::MySQL
That's it! Now you're using Apache2::ASP::Application::MySQL
to manage all of your Application state in your Apache2::ASP web application.
NOTE: - If you don't specify a value for $ENV{APACHE2_APPLICATION_MANAGER}
then it will automatically default to Apache2::ASP::Application::MySQL
.
DESCRIPTION
Apache2::ASP::Application::MySQL
is both a reference implementation and the default Application state manager for Apache2::ASP.
Application state is unblessed, serialized via Storable and written to the database as a BLOB.
The data structure itself is simply a hashref.
Because the data is persisted within an SQL database, you can take advantage of load-balanced servers without sacrificing the ability to share data across your application.
DATABASE STRUCTURE
Applications are stored in a SQL database table with the following structure:
CREATE TABLE asp_applications (
application_id VARCHAR(100) PRIMARY KEY NOT NULL,
application_data BLOB
);
AUTHOR
John Drago mailto:jdrago_999@yahoo.com
COPYRIGHT AND LICENSE
Copyright 2007 John Drago, All rights reserved.
This software is free software. It may be used and distributed under the same terms as Perl itself.