note 68728 added to function.session-cache-expire

From: Date: Tue, 08 Aug 2006 19:34:38 +0000
Subject: note 68728 added to function.session-cache-expire
Groups: php.notes 
Request: Send a blank email to php-notes+get-115689@lists.php.net to get a copy of this message
you can change the max lifetime for a session with the function ini_set(). <?php ini_set("session.gc_maxlifetime", "18000"); ?> This will set the max lifetime of the script to 5 hours. You have to use this in every script that you want to change the default lifetime for. if you want to know the lifetime of your current script, you can use: <?php echo ini_set("session.gc_maxlifetime"); ?> ---- Server IP: 83.137.20.120 Probable Submitter: 84.104.32.26 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.session-cache-expire.php Edit -- https://master.php.net/note/edit/68728 Del: integrated -- https://master.php.net/note/delete/68728/integrated Del: useless -- https://master.php.net/note/delete/68728/useless Del: bad code -- https://master.php.net/note/delete/68728/bad+code Del: spam -- https://master.php.net/note/delete/68728/spam Del: non-english -- https://master.php.net/note/delete/68728/non-english Del: in docs -- https://master.php.net/note/delete/68728/in+docs Del: other reasons-- https://master.php.net/note/delete/68728 Reject -- https://master.php.net/note/reject/68728 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115689) next »