Welcome Guest, Not a member yet? Register   Sign In
Problem Storing an object in a session

[eluser]Oussama M Billah[/eluser]

When I try to store an object in a session I get the following error:

Message: Object of class ShoppingCart could not be converted to string

Filename: libraries/Session.php

Line Number: 683

I tried the solution in the following thread:

but when i add the lines that check if the data is an object, when i click on the button that will call the given view nothing happends. It just reloads the same page.

any help?


You can't store an object like that, that's why most shopping carts store the cart info in the database as serialized data.

Theme © iAndrew 2016 - Forum software by © MyBB