Re: changing settings in PHP.ini



I need to change a setting in the php.ini file but the host won't
change it.

I know I can put the following before the session_start()..

ini_set('session.use_cookies',0);

but do I need to do this on every page or is once enough on say a login
page?

Also, I have read that you can add the following to a .htaccess file...

php_value session.use_cookies 0

I created a 1 lined text file with the above line in it and saved in on
the server in the same dir as the index page under the file name
.htaccess.

This didn't work and I got an internal server error.

Regarding the question of wether you have to do the line of php on every
page. Yes every page that you wish to use cookies on will need that line.
Also regarding the host, it is uinlikely any host would change an ini
setting on the server as it would impact everyone who uses it.

The htaccess line it is possible they have disabled the option of changing
settings via this method.


.



Relevant Pages

  • gdm hangs
    ... gdm will hang 9 of 10 times when logging out. ... with or without the client having been connected to the Server. ... # Timed login, useful for kiosks. ... Must output the chosen host on stdout, ...
    (Debian-User)
  • problem with sendmail in solaris 9
    ... names that should be exposed as from this host, ... # save Unix-style "From_" lines at top of header? ... # work recipient factor ... # SMTP STARTTLS server options ...
    (SunManagers)
  • Re: Add new cluster and use existing LUNs?
    ... Storport driver and Powerpath on all of our SAN host servers so we are trying ... In the end I think that I may play it cautious and create a new RAID group, ... > varied activity (DBMSes, Messaging Server, File Server, Web Servers, ... Some of the physical spindle limitations can be addressed through the SAN ...
    (microsoft.public.sqlserver.clustering)
  • Log corruption on multiple webservers, log analyzers,...
    ... Related RFC´s about Internet Host Names convention: ... To succesfully attack a server with “ILLC” technique is mandatory that web ... a machine with a host name as "123.123.123.123" makes a request ... wouldn't appear in the access log file. ...
    (Bugtraq)
  • UPDATE weird sendmail problem on Solaris 9 (fwd)
    ... I was asked to supply info about my sendmail config and my nsswitch.conf ... names that should be exposed as from this host, ... # list of locations of user database file ... # SMTP STARTTLS server options ...
    (SunManagers)