Welcome Guest, Not a member yet? Register   Sign In
Losing session in Firefox when redirect to other page
#1

Hi all,

I use CI Lib. session to do  the login function. It is always lost when I go to other page

Note that it happens just in Firefox (using FF38.0.5). In Chrome is ok

This is my configuration:

Code:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = FCPATH.'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

and loaded in every Controller:

Code:
$this->load->library('session');
$this->load->driver('session');

I changed config to database as:
Code:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

and make the data as:
Code:
CREATE TABLE IF NOT EXISTS `ci_sessions` (
       `id` varchar(40) NOT NULL,
       `ip_address` varchar(45) NOT NULL,
       `timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
       `data` blob NOT NULL,
       PRIMARY KEY (id),
       KEY `ci_sessions_timestamp` (`timestamp`)
);

still same problem.

Anyone help!!??

Thanks so much
Reply


Messages In This Thread
Losing session in Firefox when redirect to other page - by nnanh01 - 06-18-2015, 12:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB