The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

CatalystX::Usul::PersistentState - Set/Get state information on/from the session store

Version

0.3.$Revision: 576 $

Synopsis

   use CatalystX::Usul::PersistentState;

Description

Uses the session store to provide state information that is persistent across requests

Subroutines/Methods

get_key

   my $value = $self->get_key( $c, $key_name );

Returns a value for a given key from stash which was populated by "load_keys"

load_keys

Recovers the key(s) for the current endpoint. First it will look at then request parameters, if they are not set it will look in the session store, if that is not set then it will use the configuration defaults if they exist, inflating values from the stash if necessary

reset_keys

   $self->reset_keys( $c );

Resets this requests keys in the stash

session_key

   $self->session_key( $c );

Returns the session store key for the current controller

set_key

   $self->set_key( $c, $key_name, $value );

Sets a key/value pair in the session store

Diagnostics

None

Configuration and Environment

None

Dependencies

CatalystX::Usul::Base

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2008 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE