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.

Any suggestion on the above.

Many Thanks

Mike

.



Relevant Pages

  • Problem in write Farsi ( Persian ) in Access by Web form
    ... I have a new Host that do not working probably. ... I could not write Farsi data in Bank by web form. ... HTTP 500 - Internal server error ...
    (microsoft.public.inetserver.asp.general)
  • Re: Error Pages with .htaccess
    ... > .htaccess which works absolutely fine if I accidently go to any file ... Are you getting a standard 404 error page? ... htaccess override. ... trigger a 500 internal server error when the file is actually interpreted. ...
    (comp.lang.php)
  • Re: forbidden vs not found with tilde
    ... On Mon, 11 Feb 2008, Peter Scott wrote: ... First you need to find out whether you can use Apache's .htaccess ... files for directives. ... If you get an "Internal server error", ...
    (comp.infosystems.www.servers.unix)
  • Re: forbidden vs not found with tilde
    ... files for directives. ... in your www directory and write some garbage into it. ... If you get an "Internal server error", ...
    (comp.infosystems.www.servers.unix)
  • enable mod_rewrite in apache 1.3.9
    ... I have a problem with mod_rewrite, i have uncomment the line ... from httpd.conf file but when it test it with a sample .htaccess with ... it return 500 internal server error. ... what is the proper way to enable mod_rewrite? ...
    (linux.redhat.misc)