GX::Session::ID::Generator

Module Version: 0.2000_01

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 © 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.