Apache::Session::Sybase - An implementation of Apache::Session
| Use Case | Command | Description |
|---|---|---|
| Start a session with a new database handle | tie %hash, 'Apache::Session::Sybase', $id, { DataSource => 'dbi:Sybase:...', ... } |
Opens a new DBI connection and creates/retrieves the session |
| Start a session with an existing handle | tie %hash, 'Apache::Session::Sybase', $id, { Handle => $dbh } |
Uses an already open database handle (no Commit autoβcommit) |
use Apache::Session::Sybase;
# if you want Apache::Session to open new DB handles:
tie %hash, 'Apache::Session::Sybase', $id, {
DataSource => 'dbi:Sybase:database=sessions;server=SYBASE',
UserName => $db_user,
Password => $db_pass,
Commit => 1,
};
# or, if your handle is already opened:
tie %hash, 'Apache::Session::Sybase', $id, {
Handle => $dbh,
Commit => 0,
};
This module is an implementation of Apache::Session. It uses the Sybase backing store and the Null locking scheme. See the example, and the documentation for Apache::Session::Store::Sybase (also for the parameters that get passed to the backing store along with the schema necessary to save the sessions) and Apache::Session::Lock::Null for more details.
This module was based on Apache::Session::MySQL which was written by Jeffrey William Baker <jwbaker AT acm.org>; it was modified by Chris Winters <chris AT cwinters.com>.
Generated by phpman v4.9.22-1-g1b0fcb4 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-05 09:08 @216.73.216.52
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format