Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2005
    Location
    Sweden
    Posts
    60
    Plugin Contributions
    0

    customer log out fault!? PHP 5.0.3 vs session_destroy

    Hello,
    I get this message when the customer log out from the cart:

    Warning: session_destroy() [function.session-destroy]: Session object destruction failed in d:\customers\xxxxxxxx\wwwroot\shop\includes\functions\sessions.php on line 140

    Warning: Cannot modify header information - headers already sent by (output started at d:\customers\xxxxxxxx\wwwroot\shop\includes\functions\sessions.php:140) in d:\customers\xxxxxxxx\wwwroot\shop\includes\functions\functions_general.php on line 41

    Anyone who has a clue??

  2. #2
    Join Date
    Jan 2005
    Location
    Sweden
    Posts
    60
    Plugin Contributions
    0

    Default Re: customer log out fault!?

    It is the 1.3.5 version of the cart!
    /Kenneth

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: customer log out fault!?

    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jan 2005
    Location
    Sweden
    Posts
    60
    Plugin Contributions
    0

    Default Re: customer log out fault!?

    I Have checked this out (2 files), but I donīt find any? I have also changed the files to the original from the package! It is still the same fault!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: customer log out fault!?

    What version of PHP?
    What version of Apache/IIS?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2005
    Location
    Sweden
    Posts
    60
    Plugin Contributions
    0

    Default Re: customer log out fault!?

    Quote Originally Posted by DrByte View Post
    What version of PHP?
    What version of Apache/IIS?
    Webserver = Microsoft-IIS/5.0
    HTTP Host = www.xxxxx.se
    Path_Translated = d:\customers\xxxx.se\wwwroot\shop\xxxxx\index.php(SCRIPT_FILENAME)
    PHP O/S = WINNT
    PHP API Mode = cgi-fcgi Click here for more info
    PHP Max Execution Time per page = 30
    Register Globals = OFF
    MySQL Support = ON
    MySQL Version = 4.0.21-standard-log
    PHP Version = 5.0.3
    PHP Safe Mode = OFF
    PHP Sessions Support = ON
    PHP Session.AutoStart = OFF
    PHP session.use_trans_sid = OFF
    Current SQL Cache Folder = d:/customers/xxxxxx.se/wwwroot/shop/cache -->Writeable
    Suggested SQL Cache Folder = d:/customers/xxxxxxxx.se/wwwroot/shop/cache
    PHP magic_quotes_runtime setting = OFF
    PHP GD Support = ON
    GD Version = GD bundled (2.0.28 compatible)
    PHP ZLIB Compression Support = ON
    PHP cURL Support = OFF Click here for more info
    PHP Upload Support = ON upload_max_filesize=15M; post_max_size=8M
    PHP Upload TMP dir = C:\PHP\uploadtemp

    View PHPINFO for your server Other System Information (For Reference Only)
    The following info does not necessarily indicate any problem or configuration issue. It is simply for the sake of displaying it in an easy-to-find location.
    PHP include_path = .;C:\php5\pear
    PHP SMTP destination = localhost
    PHP sendmail path =
    PHP sendmail 'from' = xxxxxxxxx
    PHP open_basedir restrictions =
    PHP FTP Support = ON
    PHP XML Support = ON
    PHP Session.Save_Path = C:\PHP\sessiondata -->Writeable
    File and Folder Permissions
    In order for many Zen Cart™ administrative and day-to-day functions to work properly, You need to mark several files/folders "Writeable". The following is a list of folders which need to be "read-write", along with recommended CHMOD settings. Please correct these settings before continuing installation. Refresh this page in your browser to re-check settings.

    Some hosts may not allow you to set CHMOD 777, but only 666. Start with the higher setting first, and switch to lower values if required.
    includes/configure.php = Unwriteable
    admin/includes/configure.php = Unwriteable

    cache = OK
    images = OK
    includes/languages/english/html_includes = OK
    media = OK
    pub = OK
    admin/backups = OK
    admin/images/graphs = OK

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: customer log out fault!?

    PHP 5 introduced some changes to session handling -- some folks consider the PHP changes to be bugs. Zen Cart added some workarounds for the PHP bug when the v1.3.5 code came out. You might consider upgrading to v1.3.5 for the added benefit of this. I'm not certain it will solve the problem you're reporting, but it's a starting point.
    You might also consider upgrading PHP to the more stable 5.1.6, rather than using the older v5.0.3 which has been abandoned by the PHP folks (insomuch as it's no longer offered for download on their site).

    Failing that, you may need to engage your hosting company to investigate why their server configuration is not allowing PHP's session handling to work properly. There could be problems with file permissions, PHP configuration settings, memory allocation, etc. Or maybe it's just that it's using outdated PHP software.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jan 2005
    Location
    Sweden
    Posts
    60
    Plugin Contributions
    0

    Default Re: customer log out fault!?

    Quote Originally Posted by DrByte View Post
    PHP 5 introduced some changes to session handling -- some folks consider the PHP changes to be bugs. Zen Cart added some workarounds for the PHP bug when the v1.3.5 code came out. You might consider upgrading to v1.3.5 for the added benefit of this. I'm not certain it will solve the problem you're reporting, but it's a starting point.
    You might also consider upgrading PHP to the more stable 5.1.6, rather than using the older v5.0.3 which has been abandoned by the PHP folks (insomuch as it's no longer offered for download on their site).

    Failing that, you may need to engage your hosting company to investigate why their server configuration is not allowing PHP's session handling to work properly. There could be problems with file permissions, PHP configuration settings, memory allocation, etc. Or maybe it's just that it's using outdated PHP software.
    Thanks for your answer,

    It is v1.3.5 im using!
    I will talk to my hosting company to investigate or rather check with my hosting company if they want to cange the PHP version...

    Thanks again! ZenCart ROCKS!!

 

 

Similar Threads

  1. How can I log a customer out if they go to another site?
    By raunharman in forum General Questions
    Replies: 1
    Last Post: 2 Sep 2009, 11:57 PM
  2. Problem with Customer Log in/ Log out
    By tequila in forum General Questions
    Replies: 11
    Last Post: 3 Jul 2009, 02:39 AM
  3. Customer Login/log out gets a 404 error
    By chrissiemags in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 11 Oct 2008, 04:43 AM
  4. log in/log out 404 -NOT double directory issue
    By felixthehat in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 30 Sep 2006, 02:35 PM

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