Welcome Guest, Not a member yet? Register   Sign In
Cart shows content only sometimes

I have huge problem with cart library of codeigniter. It seems that it shows content only sometimes. I don't know why.

When I insert new item to cart content in insert_to_cart page and call var_dump($this->cart->content()) - it show entire cart content. Everything is ok.

Problem starts when i call var_dump($this->cart->contents()); in index, for example. It don't show content of cart at all, it shows zero, empty array... But if I call it again in insert_to_cart page, than content is untouched.

Some other informations from config.php

$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie']  = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update']  = 300;

Please, help.

Messages In This Thread
Cart shows content only sometimes - by El Forum - 07-31-2012, 08:05 AM
Cart shows content only sometimes - by El Forum - 08-10-2012, 09:17 PM

Theme © iAndrew 2016 - Forum software by © MyBB