cakePHP - 管理数据库CakeSessions [英] cakePHP - Managing a database CakeSessions
问题描述
在数据库中保存应用程序的会话后,我可以看到数据保存在json中,如果我记得正确,但如何管理它们,注销某人和/或修改会话的持续时间数据库管理员或面板?
After saving the session of the app in the database, I could see that the data is saved in json, if I remember correctly, but how to manage them, log out someone and / or modify the duration of the session by the database administrator or panel too?
我想要完全控制数据,但在互联网上,甚至在葡萄牙语和英语中找不到任何东西.... :(
I would like to have full control of data, but can not find anything on the internet, or even in Portuguese and English .... : (
cake_sessions表格:
cake_sessions table:
Config | a:3:{s:9:userAgent; s:32:9434032bcf68694ecc5837e4fde29390; s:4:time; i:1311942893; s:7:timeout; i:10;} Message | a: 8:is_admin; s:1:1; s:6:active; s:1:1; s:14:room_connected; s:1:0 a:2:{i:0; s:12:users:logout; i:1; s:1:*;}
Config|a:3:{s:9:"userAgent";s:32:"9434032bcf68694ecc5837e4fde29390";s:4:"time";i:1311942893;s:7:"timeout";i:10;}Message|a:0:{}Auth|a:1:{s:8:"is_admin";s:1:"1";s:6:"active";s:1:"1";s:14:"room_connected";s:1:"0";}}Permissions|a:2:{i:0;s:12:"users:logout";i:1;s:1:"*";}
使用数据库存储的自定义会话设置
How to use a Custom Session setup with Database Storage
它应该有很多帮助,但对于那些仍然知道如何使用它的人,解释很多... = /
It should help a lot, but for those who still know how to use it, does not explain much ... = /
推荐答案
这不是json,它叫 serialize c $ c>'d
It's not json, it's called serialize()
'd
您应该可以使用 unserialize();
You should be able to turn the data back into variables with unserialize();
这篇关于cakePHP - 管理数据库CakeSessions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!