.htaccess session timeout

For those who want to have a limited session time for each user, this is what you need to add on you .htaccess (3600 are seconds).

php_value session.cookie_lifetime 3600
php_value session.gc_maxlifetime 3600

For those who prefer it added to a PHP script, this is how

<?php
printf("cookie: %s, gc: %s", ini_get('session.cookie_lifetime'), ini_get('session.gc_maxlifetime'));