Hooking AB_Wizard with database rather than session |
[eluser]codeninja[/eluser]
Right now AB_Wizard uses SESSION to store the data across the wizard. I am wondering if it is possible to store it in the database for long term rather than storing the session in database which is short-term. AB_Wizard can be found here: http://bitbucket.org/mijnpraktijk/ab_wizard/src
[eluser]Jelmer[/eluser]
All the CRUD operations for the wizard's userdata are done by the methods __set_value(), __get_value() && __cleanup(). You could change these methods to store stuff in the database rather then in the session or cookie. It wasn't meant for such usage though and to do it in a good way you'd probably have to change some other things that make sure that you don't need a query for each individual value but that everthing is gotten and set in 1 go. I may write a new version in the future that uses drivers for storage which you can switch out easily, but more likely I'll write that for FuelPHP instead of CI. |
Welcome Guest, Not a member yet? Register Sign In |