Jump to content

Archived

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

nero

Decoding Session Variables from Flatfile

Recommended Posts

I'm at the starting point for writing a report that will show all "abandoned carts" that customers accumulate over a period of time. Customer carts are saved in mysql://dbname/customers_basket and mysql://dbname/customers_basket_attributes, but those aren't nearly all of the accumulated carts that are abandoned.

 

Here is a sample sessions file from /tmp/sess_*. The contents are:

 

cart|O:12:"shoppingcart":2:{s:8:"contents";a:0:{}s:5:"total";i:0;}language|s:7:"english";languages_id|s:1:"1";currency|s:3:"USD";nav

igation|O:17:"navigationhistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:11:"default.php";s:4:"mode";s:6:"NONSSL";s:3:"get";a:0:{}s

:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}

 

Is there any location that documents this? In the source code there is very little to show the algorithmic logic for decoding this information.

 

thank you!

Share this post


Link to post
Share on other sites

Look in the whos_online.php file in the Administration Tool module.

 

A few weeks ago I added logic there to retreive specific parameters from the session file.

 

Be sure to check from the latest CVS version.

 

Or you can take a look at session_decode


:heart:, osCommerce

Share this post


Link to post
Share on other sites

×