Created
April 6, 2011 20:51
-
-
Save sbisbee/906497 to your computer and use it in GitHub Desktop.
An example for a blog article.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'CouchSessionStore.php'; | |
class SuperCouchSessionStore extends CouchSessionStore | |
{ | |
public static function setSag($sag) | |
{ | |
//use CouchSessionStore to set everything up, so our $this->sag == $sag | |
parent::setSag($sag); | |
//overwrite the baked in database naming, creating it in Couch if it doesn't exist | |
$this->sag->setDatabase('super-database-name', true); | |
//obey our parent class's definitions | |
return $this->sag; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment