Welcome Guest, Not a member yet? Register   Sign In
Encrypted session BLOB?
#9

(01-31-2017, 10:23 AM)twistedpixel Wrote:
(12-09-2016, 10:59 AM)Narf Wrote: ... You can even add more fields to the sessions table, so that it is tied to the session ID, if that's what you want ...

Hi Narf,

Sorry to revive this thread but I came across it trying to figure out how to do exactly that. I'm struggling to figure out how to extend the database session driver so I can add a username field which would make it easier to confirm if someone is logged in, among other things. I had hoped to overwrite the write() function.

Is this possible? I've gone through the CI docs but this doesn't seem to be outlined. Any advice would be much appreciated.

It's possible, but you don't really need to do that.

You only need to update the column while doing login, logout and then override CI_Session:Confusedess_regenerate() to carry over the value when regeneration happens.
Reply


Messages In This Thread
Encrypted session BLOB? - by mikeV - 12-09-2016, 01:38 AM
RE: Encrypted session BLOB? - by Narf - 12-09-2016, 04:07 AM
RE: Encrypted session BLOB? - by mikeV - 12-09-2016, 04:12 AM
RE: Encrypted session BLOB? - by mikeV - 12-09-2016, 05:52 AM
RE: Encrypted session BLOB? - by Narf - 12-09-2016, 09:32 AM
RE: Encrypted session BLOB? - by mikeV - 12-09-2016, 09:48 AM
RE: Encrypted session BLOB? - by Narf - 12-09-2016, 10:59 AM
RE: Encrypted session BLOB? - by twistedpixel - 01-31-2017, 10:23 AM
RE: Encrypted session BLOB? - by Narf - 01-31-2017, 11:44 AM
RE: Encrypted session BLOB? - by twistedpixel - 02-01-2017, 06:43 AM
RE: Encrypted session BLOB? - by twistedpixel - 02-01-2017, 11:16 AM
RE: Encrypted session BLOB? - by Narf - 02-01-2017, 11:23 AM
RE: Encrypted session BLOB? - by twistedpixel - 02-01-2017, 12:40 PM
RE: Encrypted session BLOB? - by Narf - 02-01-2017, 03:03 PM
RE: Encrypted session BLOB? - by twistedpixel - 02-01-2017, 04:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB