CGI-Session-Driver-pure_sql
view release on metacpan or search on metacpan
lib/CGI/Session/Driver/pure_sql.pm view on Meta::CPAN
duration interval
);
You can also add any number of additional columns to the table,
but the above fields are required.
For any additional columns you add, if you would like to
expire that column individually, you need to an additional
column to do that. For example, to add a column named C<order_id>
which you want to allow to be expired, you would add these two columns:
order_id int,
order_id_exp_secs int,
If you want to store the session data in other table than "sessions",
you will also need to specify B<TableName> attribute as the
first argument to new():
use CGI::Session;
$session = CGI::Session->new("driver:pure_sql;serializer:sql_abstract", undef,
{Handle=>$dbh, TableName=>'my_sessions'});
Every write access to session records is done through PostgreSQL own row locking mechanism,
enabled by `FOR UPDATE' clauses in SELECTs or implicitly enabled in UPDATEs and DELETEs.
To write your own drivers for B<CGI::Session> refere L<CGI::Session> manual.
=head1 COPYRIGHT
Copyright (C) 2003-2010 Mark Stosberg. All rights reserved.
This library is free software and can be modified and distributed under the same
terms as Perl itself.
=head1 CONTRIBUTING
Patches, questions and feedback are welcome. Please use the bug tracker to submit
bugs and patches, and e-mail directly with questions and feedback.
https://rt.cpan.org/Public/Dist/Display.html?Name=CGI-Session-Driver-pure_sql
=head1 AUTHOR
Mark Stosberg <mark@summersault.com>
=head1 SEE ALSO
=over 4
=item *
L<CGI::Session|CGI::Session> - CGI::Session manual
=item *
L<CGI::Session::Tutorial|CGI::Session::Tutorial> - extended CGI::Session manual
=item *
L<CGI::Session::CookBook|CGI::Session::CookBook> - practical solutions for real life problems
=item *
B<RFC 2965> - "HTTP State Management Mechanism" found at ftp://ftp.isi.edu/in-notes/rfc2965.txt
=item *
L<CGI|CGI> - standard CGI library
=item *
L<Apache::Session|Apache::Session> - another fine alternative to CGI::Session
=back
=cut
( run in 2.247 seconds using v1.01-cache-2.11-cpan-cdf2f3d4e48 )