doujilou3903 2014-11-21 19:51
浏览 40

性能php mysql和session

Sorry for the english, this is translated from google.

Good day to you all users, my question is regarding performance, I tell them, for reasons of improved security of a web application I decided to handle all sessions php mysql with a handler class for the sessions, so that all changes sessions are stored in a table, so I keep the session data is stored in these files that are created when using sessions, so I avoid that somehow a user from accessing it on a shared server, the session data they are on a table in mysql.

I feel that this slightly improves application security. (correct me if I'm wrong)

The detail is so much increased queries to the database because in these sessions also apply a number of methods to protect theft in as tokens, time to expiration and other checks, so every user movement is execute multiple queries, and I feel that on a shared server that is not very good .. you tell me? Should I use sessions in mysql? it is clear that what I want to achieve is maximum protection of application data.

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记