PHP Classes


Recommend this page to a friend!
  Classes of Jo Giraerts   CouchDB Session Handler   Download  
Role: Configuration script
Content type: text/plain
Description: Config file
Class: CouchDB Session Handler
Session handler that stores data in CouchDB
Author: By
Last change:
Date: 14 years ago
Size: 437 bytes


Class file image Download

= new stdClass;
$config->couchdb = new stdClass;
$config->couchdb->host = 'localhost';
$config->couchdb->port = '5984';
$config->couchdb->dbname = 'test_sessions';

// credentials of admin user on couchdb so we can create the db if it doesn't exist
// Once the database is created, you can delete this line if you don't like your credentials in web-readable files
$config->couchdb->credentials = "admin:myadminpassword";