Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sent back to login. Failed to decode session object. Session has been destroyed.


Denkster

Recommended Posts

Please please.. Who can help me?

 

I have OsC2.3.4BS Edge on PHP5.6.

 

Existing clients with >1 address get this error:  (see attached image)

Warning: session_start(): Failed to decode session object. Session has been destroyed.

 

The effect is that the checkout procedure is redirected to the login page again

This line: ...\sessions.php:122 contains this:

return session_start();

This code previously used to be at line 95 (I did only add some comment).

 

Please help, I have been researching for days already, without results..

 

Much obliged if..

 

Eveline Bernard

 

 

 

post-237485-0-26147300-1492827228_thumb.png

Link to comment
Share on other sites

Hi Dan,

THank you for taking the trouble of answering!

 

Do you have it installed on a live environment and if so can you duplicate the results there?

 

Dan

Yes:

https://www.denkster.nl/winkel/

But the problem manifests itself with existing clients only. I will send you an login by private message.

 

Eveline

Link to comment
Share on other sites

More information:

attached is a page_parse_time.log.

 

At line 9 the session key is set.

At line 245 the session is still available.

At line 249 a query is made for a session key with the value '':

select session_id from whos_online where session_id = '' limit 1

How ..

??

 

Eveline

Link to comment
Share on other sites

@@Denkster,

What is the session table collation?

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

  • 2 weeks later...

I solved my  problem 'Sent back to login. Failed to decode session object. Session has been destroyed'.

I am not sure which of my acts actually was the solution.

 

1. I removed  this form my configure.php files: 

define('CFG_TIME_ZONE',         'UTC');

I doubt if that helped, since it was in both configure.php files and did not experience my problem in the admin.

 

2. I added a missing error message translation in my /catalog/includes/languages/dutch/checkout_process.php

 

Could that have been the cause?

Anyway, problem solved.

Link to comment
Share on other sites

  • 1 month later...

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

  • 9 months later...

I had this problem as well and I discovered the problem was when someone posted an emojli. My current server set up couldn't handle these four bytes symbols, resulting "Failed to decode session object. Session has been destroyed".

What I did was to update to character set utf8mb4 with the collation utf8mb4_unicode_ci.

In order for this to work you need to make this change to your database, the database tables and the table columns. Also, in your application code, set the connection character set to utf8mb4.

This guide might help: https://mathiasbynens.be/notes/mysql-utf8mb4

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...