I have hosted my code igniter application in AWS EC2. In that session is not setting the values in my login process. In php.ini file, i have set the session save path to /tmp
.
session.save_path = '/tmp'
Session started and session id is generating. But session values are not storing.I have printed the $_SESSION
and session id, below is the output.
string(26) "038vbmtjecvkqft02ou813qvo1" array(1) { ["__ci_last_regenerate"]=> int(1540479344) }
I have my session code as follows,
$this->session->set_userdata('frontusername', $res->Email);
$this->session->set_userdata('frontname', $res->FirstName);
$this->session->set_userdata('frontuserid', $res->Id);
Its working fine in my another server, but not here in AWS EC2. Have restared the apache after setting the save path and checked the error log under /var/log. No error. Also /tmp folder is writable.
Searching for last two days, no luck. Any help please, thanks in advance.