]> git.wh0rd.org Git - tt-rss.git/commitdiff
SESSION_COOKIE_LIFETIME
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 2 Mar 2006 16:21:08 +0000 (17:21 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 2 Mar 2006 16:21:08 +0000 (17:21 +0100)
config.php-dist
sessions.php

index 17b2ed53f1bcedd20d92305ad9f4637e4a15260b..8baf4b76cf16c4c07a4c95fae35d045fb737a402 100644 (file)
        define('SESSION_CHECK_ADDRESS', true);
        // Bind sessions to specific IP address (requires DATABASE_BACKED_SESSIONS)
 
+       define('SESSION_COOKIE_LIFETIME', 3600);
+       // In seconds, 0 means delete on browser close
+
        // vim:ft=php
 ?>
index 36a982f7cf705e6b80703283d09168d71a3428a7..42877ffec7e884ae5d7a75d1bf721af4e67cb6ff 100644 (file)
                db_query($session_connection, $query);
        }
 
+       session_set_cookie_params(SESSION_COOKIE_LIFETIME);
+
        if (DATABASE_BACKED_SESSIONS) {
                session_set_save_handler("open", "close", "read", "write", "destroy", "gc");
        }