Welcome Guest, Not a member yet? Register   Sign In
chart class don't keep items from page to page (CI char class)
#1

[eluser]Unknown[/eluser]
I'm using the standard CI chart class , I can add items, but when I change page
and I'll go back on the chart list items page I see the empty chart.

It seems like the chart objects in the session can not be re-found.

I looked in the CI_session database table and I see the object created by the chart.

how can I solve this issue ?

thanks
#2

[eluser]gyo[/eluser]
I guess you're talking about the "Cart" class, and did you try refreshing the "items list" page?
Maybe it's just a cache issue...
#3

[eluser]Unknown[/eluser]
@gyo / suashi:

Thanks, for your reply. Printing the chart directly on the page that adds the items show the items correctly. once I change page or refresh the chart session array gets empty. I'm thinking if could be a problem related to the session managment. I'm using the CI session library with DB, maybe I have to switch using the native session of PHP ?
#4

[eluser]gyo[/eluser]
Check if the 'session id' changes when the Cart is reset.
If that's the case, the session is forced to reset, and this probably depends on your specific code.

To double-check, also try adding some 'userdata' along with the Cart item, and see if that's deleted too.

Hope this helps!




Theme © iAndrew 2016 - Forum software by © MyBB