duanhao8540 2012-07-09 11:50
浏览 4
已采纳

php会话 - 这对服务器来说太过分了吗? [关闭]

I plan on storing the userid, username and location in session variables for each user who logs in. That's 3 variables per user. If 1000 users were logged in, would this be too much for the server to handle. Would this cause problems for the server and get me kicked out? I'll be using godaddy's hosting for this.

  • 写回答

4条回答 默认 最新

  • duanpin9531 2012-07-09 12:05
    关注

    The amount of sessions you are talking about maybe isn't the big deal, but the most important question is what are these sessions (users) doing when they are logged in, how much load every one is causing?

    Some times, a one logged user equals to 10 other, in the amount of load he's causing on a server, taking in consideration what are the processes he passing through within his session.

    If you are (and you seem so) running on a shared hosting server, it might be good to consider the amount of load (processing, quires..etc) your script is issuing and generating.

    Play it wisely, minimize your quires to the lowest possible, inquire your host if they have memcached enabled and consider using it, give special attention to your code logically and technically.

    In the other hand, you might make use of a VPS hosting, if you require some specific dedication in server resources.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 组策略中的计算机配置策略无法下发
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊