Learning PHP and MySQL

Example 13-16 Session timeout

<IfModule  mod_php4.c>
php_value  session.gc_maxlifetime  "14400"
</IfModule>

The value that comes after sessions.gc_maxlifetime is in hundredths of a second, so, if you want a session timeout of 30 minutes, you would use a value of 18000.

Posted by on 09/25 at 11:45 AM

Next entry: Example 13-17 pear install Auth output

Previous entry: Example 13-15 Destroying a session

<< Back to main