John Drago > Apache2-ASP-1.58 > Apache2::ASP::SessionStateManager

Download:
Apache2-ASP-1.58.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
View Bugs
Report a bug
Source   Latest Release: Apache2-ASP-2.45

NAME ^

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

SYNOPSIS ^

Within your ASP script:

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

DESCRIPTION ^

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.

METHODS ^

new( $asp )

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

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

parse_session_id( )

verify_session_id( $id )

create( $id )

Creates a new Session. Returns a new Apache2::ASP::SessionStateManager object.

retrieve( $id )

Attempts to retrieve the Session by that ID from the database.

save( )

Stores the session in the database.

reset( )

Deletes all data from the session except for its SessionID value.

new_session_id( )

Generates a new session id. Currently this is a 32-character random string of hexadecimal digits (0-9, a-f).

write_session_cookie( )

Adds the 'Set-Cookie' header to the outgoing HTTP headers.

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?Dist=Apache2-ASP to submit bug reports.

HOMEPAGE ^

Please visit the Apache2::ASP homepage at http://www.devstack.com/ 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.