We are running PHP Version 5.2.10 as CGI.
I need to change the value of session.use_only_cookies to “On” , and as this is a shared server, I can’t modify the global php.ini
With php running as CGI, I can’t obviously use the php flags in .htaccess either.
If I grab a copy of the global php.ini , and modify it, of course the value for session.use_only_cookies can be changed, but it is only changed for that path.
There are many, many paths, so replicating the modified php.ini is out of the question.
I came across this on one site
When php run as CGI
Place your php.ini file in the dir of your cgi’d php, in this case /cgi-bin/
htaccess might look something like this
AddHandler php-cgi .php .htm
Action php-cgi /cgi-bin/php5.cgi
The site only basically runs php files. There are a few html files, but they are blank ‘index.html’ , so I assume there is no need to worry about htm* files
Is the above example what I need to have the PHP setting “session.use_only_cookies” set to “On” globally.