I am using the PHP library and using Aerospike as a session handler.
This is my change in php.ini session.save_handler => aerospike session.save_path => cache|sessions|10.1.1.248:3000
So far, it works. I just wanted to understand how is the data stored. When I login, I can see that there is a record.
select * from cache.sessions
.
{ "edigest": "kT1q+jtpjnFs2GBYY6ESWik+osI=", "set": "sessions", "ttl": 15544522, "gen": 8, "bins": { "PHP_SESSION": "39 32 32 30 39 63 64 30 37 36 63 39 38 32 38 39 65 35 36 63 35 66 37 65 30 31 30 38 63 37 39 30 36 33 62 35 66 32 33 63 36 37 33 30 30 65 37 66 32 31 33 62 35 62 62 36 32 30 37 64 36 32 38 33 7C 61 3A 31 3A 7B 73 3A 34 3A 22 64 61 74 61 22 3B 61 3A 31 3A 7B 73 3A 36 3A 22 74 6F 6B 65 6E 73 22 3B 73 3A 36 34 3A 22 33 36 31 32 63 30 39 63 35 35 64 63 39 33 35 65 64 66 35 32 65 66 36 30 30 36 38 64 62 31 30 31 30 39 30 38 63 66 30 37 35 65 31 61 37 38 37 62 35 65 36 36 61 34 64 32 33 32 35 35 37 64 65 31 22 3B 7D 7D" } } ], [ { "Status": 0 } ]
How do I see the data that is stored in the session. I am storing user data like first/last name, user_id etc. But, I am not seeing it in the aql console.
Also, how do I set the PK
? I need to migrate the session data from redis to aerospike and am a bit unsure about the data storage mechanism.
A little guidance would be much appreciated.