Reputation: 81
As I am not able to add more than 6 products to the cart in codeigniter.
What can be the issue? As while I am adding 7th product, cart gets updated for a while. then after refreshing the page, it again displaying 6 products only.
Upvotes: 2
Views: 3419
Reputation: 41
@Nathan Q : You are right. Its solved my issue. Moreover, find below the script for ci_session table :
CREATE TABLE IF NOT EXISTS `ci_sessions` (
session_id varchar(40) DEFAULT '0' NOT NULL,
ip_address varchar(45) DEFAULT '0' NOT NULL,
user_agent varchar(120) NOT NULL,
last_activity int(10) unsigned DEFAULT 0 NOT NULL,
user_data text NOT NULL,
PRIMARY KEY (session_id),
KEY `last_activity_idx` (`last_activity`)
);
Upvotes: 4
Reputation: 1902
The problem is probably that you exceeded cookie size limit. Most browsers max size is around 4Kb.
What can solve your problem is to store it in database instead of cookie:
Set $config[‘sess_use_database’]
to true
in your config.php
Upvotes: 10