Zebra_Session
Zebra_Session copied to clipboard
Enhanced integration ability to beyond non-MySQLi backend.
- Added (Zebra_Session_Store) interface to allow application to implement for custom backend.
- Zebra_Session_MySQLiStore implemented provided to out-of-box work with MySQLi (as it was earlier).
class MyDataSessionStore implements Zebra_Session_Store { }
$session = new Zebra_Session(new MyDataSessionStore(...), 'SeCrEt');
Is this going anywhere?
Nope, currently I don't plan on integrating this. I am not ruling it out - I will most likely look over this and implement it at some point - but that time is not now. You can fork this and merge the pull request yourself, though
@stefangabos is it possible to use Zebra_Session along with Zebra_Database instead of this $link and another connection to the DB. Thank you.
@stefangabos is it possible to use Zebra_Session along with Zebra_Database instead of this $link and another connection to the DB. Thank you.
I am not sure I understand what you are asking but Zebra Session doesn't create a new database connection - that is why the $link
is passed to it (be it from Zebra Databse, PDO, or anything else). As for passing a different link than your "main" one, absolutely - you can have multiple database connections in your app and passing one of them to Zebra Session is up to you