I believe that is under Setup - Company Setup in the bottom right corner ... Login Timeout

I set mine for 86,400 seconds (= one day).