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

I guess session_regenerate_id() doesn't trigger an immediate write() call then ... that may differ in between PHP versions.

A hacky work-around to that would be to do this:

Code:
session_regenerate_id();
session_write_close();
session_start();
// update the row here

A more clean solution is to have a separate table instead of an additional field, using the session ID as a reference between the two.
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