{
    "mode": "perldoc",
    "parameter": "Apache::Session::Store::Sybase",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Apache%3A%3ASession%3A%3AStore%3A%3ASybase/json",
    "generated": "2026-06-13T09:32:23Z",
    "synopsis": "use Apache::Session::Store::Sybase;\nmy $store = new Apache::Session::Store::MySQL;\n$store->insert( $ref );\n$store->update( $ref );\n$store->materialize( $ref );\n$store->remove( $ref );",
    "sections": {
        "NAME": {
            "content": "Apache::Session::Store::Sybase - Store persistent data in a Sybase database\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Apache::Session::Store::Sybase;\n\nmy $store = new Apache::Session::Store::MySQL;\n\n$store->insert( $ref );\n$store->update( $ref );\n$store->materialize( $ref );\n$store->remove( $ref );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Apache::Session::Store::Sybase fulfills the storage interface of Apache::Session. Session data\nis stored in a Sybase database.\n",
            "subsections": []
        },
        "SCHEMA": {
            "content": "To use this module, you will need at least these columns in a table called 'sessions':\n\nid        CHAR(32)     # or however long your session IDs are.\nasession IMAGE\n\nTo create this schema, you can execute this command using the isql or sqsh programs:\n\nCREATE TABLE sessions (\nid         CHAR(32) not null primary key,\nasession  TEXT\n)\ngo\n\nIf you use some other command, ensure that there is a unique index on the id column of the table\n",
            "subsections": []
        },
        "CONFIGURATION": {
            "content": "The module must know what datasource, username, and password to use when connecting to the\ndatabase. These values can be set using the options hash (see Apache::Session documentation).\nThe options are:\n\nDataSource\nUserName\nPassword\n\nExample:\n\ntie %hash, 'Apache::Session::Sybase', $id, {\nDataSource => 'dbi:Sybase:database=db;server=server',\nUserName   => 'databaseuser',\nPassword   => 'K00l',\nCommit     => 1,\n};\n\nInstead, you may pass in an already-opened DBI handle to your database.\n\ntie %hash, 'Apache::Session::Sybase', $id, {\nHandle => $dbh\n};\n\nAdditional arguments you can pass to the backing store are:\n\nCommit - whether we should commit any changes; if you pass in an already-open database handle\nthat has AutoCommit set to a true value, you do not need to set this. If you let\nApache::Session::Store::Sybase create your database, handle, you must set this to a true value,\notherwise, your changes will not be saved\ntextsize - the value we should pass to the 'set textsize ' command that sets the max size of the\nIMAGE field. Default is 32K (at least in Sybase ASE 11.9.2).\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This module was based on Apache::Session::Store::Oracle which was written by Jeffrey William\nBaker <jwbaker@acm.org>; it was modified by Chris Winters <chris@cwinters.com> to work with\nApache::Session 1.5+ with changes from earlier version of Apache::Session::DBI::Sybase from Mark\nLandry <mdlandry@lincoln.midcoast.com>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Apache::Session\n",
            "subsections": []
        }
    },
    "summary": "Apache::Session::Store::Sybase - Store persistent data in a Sybase database",
    "flags": [],
    "examples": [],
    "see_also": []
}