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

NAME

GX::Session::ID::Generator - Base class for session ID generators

SYNOPSIS

None.

DESCRIPTION

This module provides the GX::Session::ID::Generator class which extends the GX::Class::Object class.

METHODS

Constructor

new

Returns a new session generator object.

    $generator = $generator_class->new;
Returns:
Exceptions:

Public Methods

generate_id

Generates a random session ID string.

    $session_id = $generator->generate_id;
Returns:
  • $session_id ( string )

validate_id

Returns true if the given string is a valid session ID, otherwise false.

    $result = $generator->validate_id( $session_id );
Arguments:
  • $session_id ( string )

Returns:
  • $result ( bool )

SUBCLASSES

The following classes inherit directly from GX::Session::ID::Generator:

SEE ALSO

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright (c) 2009-2011 Jörg A. Uzarek.

This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.