I am using CI 3.1.9. At start everything was working fine but now my CI session gets destroyed automatically but this behavior is random. Sometimes it works fine but most of the time when i login it redirects me to the login page again due to session gets destroyed. I have searched it over stackoverflow.com the found a solution here Codeigniter session data lost after redirect. The solution worked perfect for me but I don't understand what difference does it make by replacing
ini_set('session.name', $params['cookie_name']);
by
ini_set('session.id', $params['cookie_name']);
I have found many solution here Codeigniter session data lost after redirect and solved my issue too but i wanted to know that difference of session.id
instead of session.name
.
in session library.