Results 1 to 9 of 9
  1. #1
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    During my clean install of v1.38, during my set-up check I received the message: PHP session.use_trans_sid=ON along with the link to the fix, which is to the page: http://www.olate.co.uk/articles/252

    I chose the .htaccess fix which was to add the line:

    php_flag session.use_trans_sid off

    to my .htaccess file, which until the addition of that line was empty. The file is also one directory level above the store.

    After I added the line to the file, i clicked on the recheck button, and was given a 500 error screen, which I just assumed was bcause I had added it in the middle of an install. So I closed my browser, re-opened it and began the install over again, or at least attempted to.

    I was not allowed access to the install files. All I received were 500 errors and denied access. So I went back in via ftp and deleted the line from the .htaccess file and once again was able to access the install files.

    Is this how it is supposed to work? Was I supposed to wait until after the install to add it?

    thank you,

    betty

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    Create a file called 'php.ini' and place the following in it.

    session.use_trans_sid = off
    register_globals = off


    Now upload to the 'php.ini' file to the same place where you uploaded the "ipn_main_handler.php" file.

    You should then be good to go (and more secure as well).
    Last edited by Website Rob; 5 Dec 2007 at 08:32 AM.

  3. #3
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    Will that disable any admin functions?

    thank you,

    betty

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    No.

    Whether you turn them OFF or leave them ON is up to you, but there is a reason why they are mentioned in the Zen Cart setup.

  5. #5
    Join Date
    May 2007
    Location
    Florida
    Posts
    18
    Plugin Contributions
    0

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    Hi,
    I had the same big RED X when doing my first (fresh) install of v.1.3.8

    I uploaded an .htaccess file to correct it. Htaccess file includes this:


    # Fix certain PHP values

    #<IfModule mod_php4.c>
    php_flag session.use_trans_sid 0
    php_value session.use_trans_sid 0
    php_value register_globals 0
    #</IfModule>
    php_flag session.use_trans_sid off
    php_value session.use_trans_sid off
    php_value register_globals off
    #php_value register_globals off
    <Files ".ht*">
    deny from all
    </Files>

    which SHOULD fix the warning about the session.use_trans_sid=ON, but does not.
    Anyone have any other thoughts.

    Oh, the php.ini idea above did not work for me.

  6. #6
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    the php.ini is used for servers that are running php as cgi since you cant place php over-ride directives in .htaccess files.
    Zen cart PCI compliant Hosting

  7. #7
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    I don't know if this applies to your situation - but maybe it does.

    We run our servers in "High Security" mode, which means that what you can do via .htaccess is limited. URL Rewriting is okay, but setting Register Globals on/off has to be done via a local php.ini file.

    That's not just via any old php.ini file which the cistomer writes but a local server generated php.ini file which the site owner can access, download, edit and then upload again.

    If you are using your own php.ini file which you created then look via FTP into the lowest of the directories (closest to root) you can access and see if there's a php.ini file there.

    Vger


    Quote Originally Posted by Geixa View Post
    Hi,
    I had the same big RED X when doing my first (fresh) install of v.1.3.8

    I uploaded an .htaccess file to correct it. Htaccess file includes this:


    # Fix certain PHP values

    #<IfModule mod_php4.c>
    php_flag session.use_trans_sid 0
    php_value session.use_trans_sid 0
    php_value register_globals 0
    #</IfModule>
    php_flag session.use_trans_sid off
    php_value session.use_trans_sid off
    php_value register_globals off
    #php_value register_globals off
    <Files ".ht*">
    deny from all
    </Files>

    which SHOULD fix the warning about the session.use_trans_sid=ON, but does not.
    Anyone have any other thoughts.

    Oh, the php.ini idea above did not work for me.

  8. #8
    Join Date
    May 2007
    Location
    Florida
    Posts
    18
    Plugin Contributions
    0

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    Hi all,
    My hosting company does not allow me to access the root php.ini file to set globals.
    They insist on doing this by way of .htaccess.
    I also checked that Allowoverride was enabled an it is.

    I just opened a trouble ticket with my hosting company.
    They finally replied & it seems that the .htaccess file did turn the session.use_trans_sid OFF, but it didn't say that during install...


    Here's what my hosting company sent to me proving the session.use_trans_sid was OFF:





  9. #9
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: v1.38 New Install PHP session.use_trans_sid=ON fix causes error

    In the two entries above that one both the local and master values are the same. It just seems odd that you have to use .htaccess to turn session.use_trans_sid to off

    Vger

 

 

Similar Threads

  1. PHP session.use_trans_sid = ON
    By wotnow in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 16 Sep 2011, 03:37 AM
  2. PHP session.use_trans_sid = ON
    By Maynards in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 24 Jun 2011, 10:19 AM
  3. # PHP session.use_trans_sid = ON Error
    By zach in forum Installing on a Windows Server
    Replies: 1
    Last Post: 4 Sep 2007, 03:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR