Posts: 71
Threads: 16
Joined: Jul 2017
Reputation:
0
Don't know if am the only one who witnessed this, the session is lost when a redirection occurs.
Posts: 132
Threads: 24
Joined: Jan 2016
Reputation:
8
Have the session active int the page where you are redirected?
Does any Exception appear?
Posts: 1,298
Threads: 62
Joined: Oct 2014
Reputation:
86
You're not likely to fix the problem without showing us your session config, and how you are using session.
Posts: 71
Threads: 16
Joined: Jul 2017
Reputation:
0
well the session is initiated in a core controller
function __construct(...$params)
{
parent::__construct(...$params);
Asset::_init();
// Ensure session is running
session()->start();
}
and the session settings
public $sessionDriver = 'CodeIgniter\Session\Handlers\FileHandler';
public $sessionCookieName = 'icvent_session';
public $sessionExpiration = 7200;
public $sessionSavePath = '../../Tarena/writable/temp';
public $sessionMatchIP = false;
//public $sessionTimeToUpdate = 0;
public $sessionTimeToUpdate = 300;
public $sessionRegenerateDestroy = false;
Posts: 71
Threads: 16
Joined: Jul 2017
Reputation:
0
note, when i downgrade to php 5.6, it works well
Posts: 71
Threads: 16
Joined: Jul 2017
Reputation:
0
Tried this, still same thing, once the page redirects, the session is get destroyed