Hi all,

I'm glad to announce first public release of 'Template::Plugin::Session' module.

Template::Plugin::Session - Template Toolkit interface to Apache::Session

This Template Toolkit plugin provides an interface to Apache::Session module 
wich provides a persistence framework for session data. 

Darren Chamberlain has suggested to me that a general session managing plugin
will be useful in other contexts than in web development w/Apache, so I've wrote
it :-).

You can download it from CPAN:

   http://www.cpan.org/authors/id/E/EN/ENRYS/Template-Plugin-Session-0.01.tar.gz

SYNOPSIS

    [% options = {
          Store => 'File'
          Generate => 'MD5',
          Lock => 'Null',
          Serialize => 'Storable',
          Directory => '/tmp/session_data/'
         } %]
    # for a first time session generation
    [% USE mysess = Session ( undef, options ) %]

    # to retrieve session by id
    [% USE mysess = Session ( 'b7cc652e2944b8f77651d1a122cdc5f2', options ) %]

    If the constructor cannot create a session instance using the arguments
    passed, a "Session" Exception is thrown, which will need to be caught
    appropriately:
 
    [% TRY %]
       [% USE mysess = Session ( id, options ) %]
    [% CATCH Session %]
       Can't create/restore session id
    [% CATCH %]
       Unexpected exception: [% error %]
    [% END %] 

For detailed module methods and info, see:

        perldoc Template::Plugin::Session

by

        - Enrico

Reply via email to