if you are using PHP, You would set this in the php.ini file by modifying the following setting:
session.cookie_lifetime
session.gc_maxlifetime
these are set in seconds, so for 15 minutes, use:
session.cookie_lifetime = 900
session.gc_maxlifetime = 900