Make your PHP sessions last longer by Dan | Feb 27, 2008 | php | 0 comments It’s pretty simple. ini_set('session.gc_maxlifetime',n); where n is the number of seconds before the session times out. Submit a CommentYou must be logged in to post a comment.