Welcome Guest, Not a member yet? Register   Sign In
Extend CI_Session_database_driver to work with extra cols in ci_sessions table
#6

(This post was last modified: 08-19-2015, 04:55 PM by jLinux.)

(08-19-2015, 01:44 PM)Narf Wrote: That file should be put into application/libraries/Session/drivers/, not application/core/ ...

However, there's very sensitive code in the drivers' files and you'd need to update your extension for every bugfix that they get. I'd consider another solution if I were you.

Well this is an application that will be bundled up and installed by whoever uses it as a whole, not managed as a website using a CI framework, but rather as an application, all updates will be coming from me, so I would be able to control that.

I think ill create an association table, then just create a wrapper around the write and destroy methods, but not change the methods themselves.

So it just creates the record in the association table or deletes it, then executes the correct method in the CI_Session_database_driver class
Reply


Messages In This Thread
RE: Extra column in sessions table - by Narf - 08-19-2015, 11:20 AM
RE: Extra column in sessions table - by jLinux - 08-19-2015, 11:33 AM
RE: Extra column in sessions table - by jLinux - 08-19-2015, 12:03 PM
RE: Extend CI_Session_database_driver to work with extra cols in ci_sessions table - by jLinux - 08-19-2015, 04:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB