Index: session.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/session.inc,v retrieving revision 1.11 diff -u -r1.11 session.inc --- session.inc 10 Jan 2005 19:36:21 -0000 1.11 +++ session.inc 13 Feb 2005 19:08:05 -0000 @@ -7,6 +7,25 @@ */ session_set_save_handler("sess_open", "sess_close", "sess_read", "sess_write", "sess_destroy", "sess_gc"); + +// This section of the code sets the session cookie life time to 1 month. +// This default can be overridden by by putting the following in the +// settings.php file, under the $conf variable: +// +// 'session_cookie_lifetime' => 2592000, +// +// You can set it to any value, here are the most likely ones +// 86400 : 1 day +// 172800 : 2 days +// 604800 : 1 week +// 1209600 : 2 weeks +// 2592000 : 1 month +// 7776000 : 3 months +// 15552000 : 6 months +// +$session_cookie_lifetime = variable_get('session_cookie_lifetime', 2592000); +ini_set("session.cookie_lifetime", $session_cookie_lifetime); + session_start(); /*** Session functions *****************************************************/