Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Apache::Session::Store::MySQL 1.89

    Download button

    No screenshots available
    Downloads: 317  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jeffrey William Baker | More programs
    Perl Artistic License / FREE
    October 7th, 2007, 19:05 GMT [view history]
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Apache::Session::Store::MySQL description

    A perl module that can store persistent data in a MySQL database

    Apache::Session::Store::MySQL can store persistent data in a MySQL database.

    SYNOPSIS

    use Apache::Session::Store::MySQL;

    my $store = new Apache::Session::Store::MySQL;

    $store->insert($ref);
    $store->update($ref);
    $store->materialize($ref);
    $store->remove($ref);

    Apache::Session::Store::MySQL fulfills the storage interface of Apache::Session. Session data is stored in a MySQL database.


    SCHEMA

    To use this module, you will need at least these columns in a table called 'sessions', or another table name if you provide the TableName argument:

    id char(32) # or however long your session IDs are.
    a_session text

    To create this schema, you can execute this command using the mysql program:

    CREATE TABLE sessions (
    id char(32) not null primary key,
    a_session text
    );


    If you use some other command, ensure that there is a unique index on the table's id column.

    CONFIGURATION

    The module must know what datasource, username, and password to use when connecting to the database. These values can be set using the options hash (see Apache::Session documentation). The options are:

    DataSource
    UserName
    Password
    TableName
    Handle

    Example:

    tie %hash, 'Apache::Session::MySQL', $id, {
    DataSource => 'dbi:mysql:database',
    UserName => 'database_user',
    Password => 'K00l',
    TableName => 'sessions'
    };


    Instead, you may pass in an already-opened DBI handle to your database.

    tie %hash, 'Apache::Session::MySQL', $id, {
    Handle => $dbh
    };


    Product's homepage

    Requirements:

    · Perl

    What's New in This Release: [ read full changelog ]

    · require Digest::MD5
    · all semaphore tests were removed
    · Apache::Session::Store::File::materialize should not append to $session->{serialized} Apache::Session::Store::File will flush after writing to file

      


    TAGS:

    store persistent data | MySQL database | Perl module | MySQL | Apache | database



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM