PHP:session.auto_start [英] PHP: session.auto_start
问题描述
我在同一台服务器上有两个项目,它们在session.auto_start"中的设置冲突,相关 发布.尽管其他项目包含诸如 session_start() 之类的代码,但我可以让 session.auto_start "ON" 吗?
I have two projects in the same server, their settings conflict in the "session.auto_start", related post. Can I have the session.auto_start "ON" despite the other project contains codes such as session_start()?
推荐答案
如果您使用的是 apache,并且有正确的选项,您可以使用包含以下行的 .htaccess 文件启用 session.auto_start: php_flag session.auto_start 1
If you're using apache, and have the right Options, you can enable session.auto_start with a .htaccess file containing this line: php_flag session.auto_start 1
或者您可以将它放在该标签中的全局 apache 配置中.
Or you might be able to put it in your global apache config in that tag.
这篇关于PHP:session.auto_start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!