CodeIgniter Forums
Codeigniter 3.X session lost - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Codeigniter 3.X session lost (/thread-67495.html)



Codeigniter 3.X session lost - Jimit - 02-28-2017

Hello Sir,

i will used Codeigniter3.x.

and autoload session lib.

but when form data post in controller that time session can not retrive.


my config below


Code:
$config['uri_protocol']    = 'REQUEST_URI';


$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'cisession';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
$config['sess_encrypt_cookie']=FALSE;

$config['cookie_prefix']    = '';
$config['cookie_domain']    = '';
$config['cookie_path']        = '/';
$config['cookie_secure']    = FALSE;
$config['cookie_httponly']     = FALSE;

$config['global_xss_filtering'] = FALSE;

$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
$config['csrf_exclude_uris'] = array();


when form data post that not retrive session


RE: Codeigniter 3.X session lost - ciadmin - 02-28-2017

You have not configured sessions correctly.
You need to specify a writeable folder location in the 'sess_save_path' parameter.

https://www.codeigniter.com/user_guide/libraries/sessions.html#session-preferences


RE: Codeigniter 3.X session lost - Jimit - 03-01-2017

Issue Solved Smile

Issue in views template user image give not proper url that time session break .


RE: Codeigniter 3.X session lost - InsiteFX - 03-01-2017

You write [SOLVED] in the form topic title.