Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change session.auto_start without php.ini access


Guest

Recommended Posts

i just installed the shop and got this message:

Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.

i once heard that it is possible to put something in a .htaccess file on linux.

to change the behaviour of php for that folder.

somebody knows a solution? since i don`t have access to the php.ini file on the server i use.

Link to comment
Share on other sites

i found the solution:

in the .htaccess - file in the directory of the shop, you must put this at the end:

<IfModule mod_php4.c>
 php_value session.use_trans_sid 0
 php_value register_globals 1
 php_value session.auto_start 0

</IfModule>

 

then it all works!

 

you should change the warning, so everyone can solve this problem to:

Warning: session.auto_start is enabled - please add to your .htaccess 'php_value session.auto_start 0' or disable this php feature in php.ini and restart the web server.
Link to comment
Share on other sites

  • 1 month later...
  • 10 months later...
session.auto_start=0

 

I had to enable php_value session.auto_start in my php.ini file for an inventory program (running in php) that I have on my server. But now I get the warning about it when I access my catalog. I tried adding this to the .htaccess file that is in the catalog folder:

<IfModule mod_php4.c>

php_value session.use_trans_sid 0

php_value register_globals 1

php_value session.auto_start 0

</IfModule>

But it has no effect. I still get the error. Even tried rebooting the server. Can you suggest anything else?

Thanks!

Give us your best shot!

PhotoImprints.com

Link to comment
Share on other sites

it should work!

 

are you sure that your .htaccess file does work at all?

 

you must set the right "AllowOverride" option

in your httpd.conf in apache or

/etc/apache2/apache2.conf if you use apache2

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...