Tell PHP to cache for 90 days before session

This commit is contained in:
Gabe
2016-11-03 12:21:48 -05:00
committed by GitHub
parent 52a4258bb3
commit a509438b53

View File

@@ -1,4 +1,7 @@
<?php
session_cache_limiter("public");
$expiry = 90; //days
session_cache_expire($expiry * 24 * 60);
session_start();
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));