Zebra_Session icon indicating copy to clipboard operation
Zebra_Session copied to clipboard

Enhanced integration ability to beyond non-MySQLi backend.

Open prasad83 opened this issue 7 years ago • 4 comments

  • 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');

prasad83 avatar Jun 15 '17 13:06 prasad83

Is this going anywhere?

tsmgeek avatar Feb 01 '19 10:02 tsmgeek

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 avatar Feb 01 '19 10:02 stefangabos

@stefangabos is it possible to use Zebra_Session along with Zebra_Database instead of this $link and another connection to the DB. Thank you.

alkinbg avatar Aug 25 '23 05:08 alkinbg

@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

stefangabos avatar Aug 26 '23 04:08 stefangabos