change your session.gc_maxlifetime in php.ini too, otherwise it may not work