Welcome Guest, Not a member yet? Register   Sign In
Using the Sessiong class
#8

[eluser]Reneesh T K[/eluser]
autoload session in autoload.php page in config folder like the below

$autoload['libraries'] = array('database','session','form_validation','pagination','email');


Check the config table and check for is session is using database:

$config['sess_cookie_name'] = 'ci_frontend_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_frontend_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;

If it is using database, check is anything entering to the table when a page loads.

I think there is no need to include session in each page. If it is loading in autoload.php page, it is working normally.


Messages In This Thread
Using the Sessiong class - by El Forum - 04-06-2012, 06:32 PM
Using the Sessiong class - by El Forum - 04-06-2012, 09:22 PM
Using the Sessiong class - by El Forum - 04-06-2012, 09:38 PM
Using the Sessiong class - by El Forum - 04-15-2012, 10:56 AM
Using the Sessiong class - by El Forum - 04-15-2012, 11:24 AM
Using the Sessiong class - by El Forum - 04-15-2012, 11:27 AM
Using the Sessiong class - by El Forum - 04-15-2012, 11:29 AM
Using the Sessiong class - by El Forum - 04-16-2012, 02:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB