Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By fnord on
I'm having a problem getting drupal to get along with other web applications that I have running on my server.
If I set session.auto_start to 0, the site works perfectly, but other php apps refuse to work at all.
If I set it to 1, everything but drupal works.
Is there a workaround for this?
Thanks,
fnord
Comments
trying .htaccess...
I tried creating a .htaccess file in the root folder of drupal, but it isn't working either.
.htaccess:
session.auto_start=1
Is there any way around this requirement? It keeps drupal from getting along with any other app I've ever tried, including squirrelmail and a bunch of others as well. Getting a bit frustrating...
Got it.
I couldn't get the .htaccess directives to override what was in php.ini, but I discovered that you can override them in your virtualhost directives in httpd.conf.
You can just set:
php_value session.auto_start 1
within your virtualhost directive, restart apache and you're good to go.
You set it in .htaccess as well
You set it in .htaccess as well, just have to use the same syntax as you used for the httpd.conf, and not php.ini.
The reason session auto start won't work with Drupal is that we use a custom session handler, but if auto start is enabled those handlers aren't registered before the session starts.
--
Kjartan
session.auto_start
i hope better session.auto_start to 0. For all.
thanks.
zofran.tech