I have a hosted site and a shopping cart. The shopping cart says I need to edit the PHP.ini file. The hosting company says I don't have access to the PHP.ini but I can set directives in an .htaccess file. The code I need to add/change is:

session.use_trans_sid off and register_globals off

Can someone help? I have browsed a bit but I'm not sure I fully understand this.
Thanks in advance.

    i don't know much about this but the php.ini on my local machine has the following settings:

    register_globals = Off

    session.use_trans_sid = 0

    i think 0 is off and 1 is on. maybe you should save these two lines in the .htaccess file ? not very sure though.

      To set values in a .htaccess file (when PHP is installed as an Apache module), you can use several Apache directives to set PHP settings for a script. If you look at a phpinfo() output, you'll notice an extra column for "Local Value" - this is what you'll be changing.

      For more information, see this manual page: [man]configuration.changes[/man]

        Write a Reply...