Welcome Guest, Not a member yet? Register   Sign In
how to display the blob data of table ci_sessions : resolved :)
#3

(This post was last modified: 04-09-2015, 09:04 PM by casa.)

Thanks you but like you say, i try with session_decode but it's not the result that i'm wanting because in database, the string in column data is like "__ci_last_generate:i (int) | ... " and the format is not a serialize data or session encode.
I try with the diffrent header (header('Content-Type: ..')) but no result.
I want to use these datas in my administration interface to see who is connected and manage session users.

To solve my problem, I make a function to explode and after implode this datas in order to have an array like $t[key] = $value.
Also, i create a library to manage array especially for managing non-existing keys because of the format string present in database.

For everybody, if you use by example session variable with hour (or other) like this format "hh:mm: ss" (or using ":").
If you want to use it via session variables present in column 'data' of the table 'ci_sessions' (or other name you give it) in database, change the format especially if you made a function like me, because of the ":" in the format string in column 'data'.
Reply


Messages In This Thread
RE: display blob data in database for sessions - by casa - 04-09-2015, 09:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB