Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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



NAME

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


SYNOPSIS

Within your ASP script:


  <%

    $Application->{counter}++;

    $Response->Write("This website has had $Application->{counter} visitors since restart.");

  %>


DESCRIPTION

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.


METHODS

All methods are overridable, but come with sensible defaults.

new( $asp )

Returns a new Apache2::ASP::ApplicationStateManager object, using $asp.

$asp should be a valid the Apache2::ASP manpage object.

create( )

Creates a new Application. Returns a new Apache2::ASP::ApplicationStateManager object.

retrieve( )

Attempts to retrieve the current Application from the data source specified in the global config.

save( )

Attempts to save the current Application in the data source specified in the global config.

dbh( )

Returns a blessed DBI connection to the data source specified in the global config.


BUGS

It's possible that some bugs have found their way into this release.

Use RT http://rt.cpan.org/NoAuth/Bugs.html to submit bug reports.


HOMEPAGE

Please visit the Apache2::ASP homepage at http://apache2-asp.no-ip.org/ to see examples of Apache2::ASP in action.


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.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy