Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个稳定的解决方案,将会话数据存储在 MS/IIS7 上的 ram 中。
单服务器设置。
感谢任何有关的经验
该解决方案取决于您当前和未来的可扩展性要求。您提到的 3 的任何设置肯定会稳定。是否足以满足您的要求;是另一个问题。
好消息是,您可以随时将策略从内存中切换到分布式会话(如果您计划添加更多服务器),只需安装 php 的 memcache 会话扩展。
因此,我建议您现在不要担心它,只需在内存会话中使用,除非您需要扩展。