PHP increase the session timeout

If you wish to increase the session timeout, you may include the following command line in to the first line after the php tags.

ini_set("session.gc_maxlifetime","14400");

Replace the 14400 with the session period (in seconds) that you desired.

  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

Related Articles

Safe Mode and open_basedir

Safe ModeThe PHP safe mode is an attempt to solve the shared environment server security problem....

PHP Send Mail (HTML) Script

  Line No Coding 1 2 $to = 'user1@OtherDomain.com' . ','; //Specify...

Enable display_errors In PHP

Enable display_errors For PHP The web server by default do not have the display_errors turned on...

Enable PHP with Register Globals Turned On

This setting applied to both PHP version 4.x and 5.x. After this tutorials, you will be able to...

Do You Support $_Server['DOCUMENT_ROOT'] ?

$_Server['DOCUMENT_ROOT'] is referring to doc_root value in php.ini which is currently set to...