Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 3.X session lost

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

$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['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

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


Issue Solved Smile

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

You write [SOLVED] in the form topic title.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB