I am new for php with codeigniter. I have a issue about php session with codeigniter mvc framework. When I have used table(ci-sessions) to store session data when I can not login in our site due to session expiration..
- I have set
var $sess_table_name = 'ci_sessions';
&var $sess_use_database = TRUE;
in Session class. - I have also set
$config['sess_use_database'] = TRUE;
&$config['sess_table_name']= 'ci_sessions';
in config.php. I have created table in database like-
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), KEYlast_activity_idx
(last_activity
) );
Give good solution about it.
Please help me.