
Apache2::ASP::ApplicationStateManager - Base class for Application State Managers.

Within your ASP script:
<%
$Application->{counter}++;
$Response->Write("This website has had $Application->{counter} visitors since restart.");
%>

The global $Application object is an instance of a subclass of Apache2::ASP::ApplicationStateManager.
It is a blessed hash that is persisted within a database. Use it to share information across all requests for all users.
NOTE: - do not store database connections within the $Application object because they cannot be shared across different processes/threads at this time.

All methods are overridable, but come with sensible defaults.
Returns a new Apache2::ASP::ApplicationStateManager object, using $asp.
$asp should be a valid Apache2::ASP object.
Creates a new Application. Returns a new Apache2::ASP::ApplicationStateManager object.
Attempts to retrieve the current Application from the data source specified in the global config.
Attempts to save the current Application in the data source specified in the global config.
Returns a blessed DBI connection to the data source specified in the global config.

It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache2-ASP to submit bug reports.

Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.

John Drago mailto:jdrago_999@yahoo.com

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.