PHP: session.auto_start

php, session

Solution

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

Or you might be able to put it in your global apache config in that tag.

Problem

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()?

Original source