Welcome Guest, Not a member yet? Register   Sign In
Cart Class Issue
#2

Did you setup your session table correctly?

You may need to add a Primary Key etc;

Code:
For MySQL:

CREATE TABLE IF NOT EXISTS `ci_sessions` (
       `id` varchar(128) NOT NULL,
       `ip_address` varchar(45) NOT NULL,
       `timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
       `data` blob NOT NULL,
       KEY `ci_sessions_timestamp` (`timestamp`),
);

// When sess_match_ip = TRUE
ALTER TABLE ci_sessions ADD PRIMARY KEY (id, ip_address);

// When sess_match_ip = FALSE
ALTER TABLE ci_sessions ADD PRIMARY KEY (id);

// To drop a previously created primary key (use when changing the setting)
ALTER TABLE ci_sessions DROP PRIMARY KEY;

Only MySQL and PostgreSQL databases are officially supported, due to lack of advisory locking mechanisms on other platforms.
Using sessions without locks can cause all sorts of problems, especially with heavy usage of AJAX, and we will not support
such cases. Use session_write_close() after you’ve done processing session data if you’re having performance issues.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Cart Class Issue - by sourabh1992 - 12-10-2018, 03:06 AM
RE: Cart Class Issue - by InsiteFX - 12-11-2018, 09:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB