Have been pulling out my hair trying to find out why my sessions are being terminated/killed/destroyed at 30 minutes. Well it looks like Debian based systems have a special
Edit the file /usr/lib/php5/maxlifetime
/usr/lib/php5/maxlifetime
The value should be in seconds. This file will actually also check your php.ini so I don't know why it wasn't working for you.