Forums / Installing on a Windows Server / customer log out fault!? PHP 5.0.3 vs session_destroy

customer log out fault!? PHP 5.0.3 vs session_destroy

Locked

Views: 2,483

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
29 Oct 2006, 12:10 AM
#1
keerik avatar

keerik

New Zenner

Join Date:
Jan 2005
Location:
Sweden
Posts:
54
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??

29 Oct 2006, 2:35 PM
#2
keerik avatar

keerik

New Zenner

Join Date:
Jan 2005
Location:
Sweden
Posts:
54
Plugin Contributions:
0

Re: customer log out fault!? PHP 5.0.3 vs session_destroy

It is the 1.3.5 version of the cart!
/Kenneth

29 Oct 2006, 3:16 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: customer log out fault!? PHP 5.0.3 vs session_destroy

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.

29 Oct 2006, 3:45 PM
#4
keerik avatar

keerik

New Zenner

Join Date:
Jan 2005
Location:
Sweden
Posts:
54
Plugin Contributions:
0

Re: customer log out fault!? PHP 5.0.3 vs session_destroy

Kim:

https://www.zen-cart.com/tutorials/index.php?article=87

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!

29 Oct 2006, 5:26 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: customer log out fault!? PHP 5.0.3 vs session_destroy

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.

30 Oct 2006, 10:36 AM
#6
keerik avatar

keerik

New Zenner

Join Date:
Jan 2005
Location:
Sweden
Posts:
54
Plugin Contributions:
0

Re: customer log out fault!? PHP 5.0.3 vs session_destroy

DrByte:

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

Webserver = Microsoft-IIS/5.0
HTTP Host = https://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

30 Oct 2006, 6:22 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: customer log out fault!? PHP 5.0.3 vs session_destroy

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.

30 Oct 2006, 8:33 PM
#8
keerik avatar

keerik

New Zenner

Join Date:
Jan 2005
Location:
Sweden
Posts:
54
Plugin Contributions:
0

Re: customer log out fault!? PHP 5.0.3 vs session_destroy

DrByte:

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!!