
Apache2::ASP::SessionStateManager - Base class for Session State Managers.

Within your ASP script:
<%
$Session->{counter}++;
$Response->Write("You have viewed this page $Session->{counter} times.");
%>

The global $Session object is an instance of a subclass of Apache2::ASP::SessionStateManager.
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 $Session object because they cannot be shared across different processes/threads at this time.

Returns a new Apache2::ASP::SessionStateManager object, using $asp.
$asp should be a valid Apache2::ASP object.
Creates a new Session. Returns a new Apache2::ASP::SessionStateManager object.
Attempts to retrieve the Session by that ID from the database.
Stores the session in the database.
Deletes all data from the session except for its SessionID value.
Generates a new session id. Currently this is a 32-character random string of hexadecimal digits (0-9, a-f).
Adds the 'Set-Cookie' header to the outgoing HTTP headers.
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.