| Apache-Session-Generate-UUID documentation | Contained in the Apache-Session-Generate-UUID distribution. |
Apache::Session::Generate::UUID - UUID for session ID generation
use Apache::Session::Flex;
tie %session, 'Apache::Session::Flex', $id, {
Store => 'MySQL',
Lock => 'Null',
Generate => 'UUID',
Serialize => 'Storable',
};
Apache::Session::Generate::UUID extends Apache::Session to allow you to create UUID based session ids. This module fits well with long-term sessions, so better using RDBMS like MySQL for its storage.
There are no configuration options.
Nick Gerakines, <nick at socklabs.com>
Please report any bugs or feature requests to
bug-apache-session-generate-uuid at rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Apache-Session-Generate-UUID.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Apache::Session::Generate::UUID
You can also look for information at:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache-Session-Generate-UUID
Copyright 2006 Nick Gerakines, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Apache-Session-Generate-UUID documentation | Contained in the Apache-Session-Generate-UUID distribution. |
# $Id: $ $Revision: $ $Source: $ $Date: $ package Apache::Session::Generate::UUID; use strict; use warnings; use Data::UUID; our $VERSION = '0.2'; sub generate { my ($session) = @_; return $session->{'data'}->{'_session_id'} = Data::UUID->new->create_str(); } sub validate { my ($session) = @_; if ($session->{'data'}->{'_session_id'} !~ /^[a-fA-F0-9\-]+$/xm) { die; } return 1; } 1; __END__