Hi all,
I'm new on this list.
I've written a TT2 plugin in order to integrate session management under
Apache/mod_perl environment using my Apache::SessionManager CPAN module
(a mod_perl - framework independent - wrapper over Apache::Session).
Simple usage:
---
[% USE SessionManager %]
Getting single session value
SID = [% SessionManager.get('_session_id') %]
Getting multiple session values
[% FOREACH s = SessionManager.get('_session_id','_session_timestamp') %]
* [% s %]
[% END %]
Getting all session values<BR>
[% FOREACH s = SessionManager.get %]
* [% s %]
[% END %]
Setting session values:
[% SessionManager.set('foo' => 10, 'bar' => 20, ...) %]
Deleting session value(s)
[% SessionManager.delete('foo', ...) %]
Destroying session
[% SessionManager.destroy %]
---
I've called the plugin Template::Plugin::SessionManager and
I would include it into next Apache::SessionManager release.
My question is: it's correct to use this namespace?
Moreover, it is better to make a separate distribution (but I would
integrate it into Apache::SessionManager for a better maintenance)?
Thanks in advance
- Enrico
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates