mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-13 03:36:21 +00:00
Tell PHP to cache for 90 days before session
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
session_cache_limiter("public");
|
||||||
|
$expiry = 90; //days
|
||||||
|
session_cache_expire($expiry * 24 * 60);
|
||||||
session_start();
|
session_start();
|
||||||
define('DS', DIRECTORY_SEPARATOR);
|
define('DS', DIRECTORY_SEPARATOR);
|
||||||
define('ROOT', dirname(__FILE__));
|
define('ROOT', dirname(__FILE__));
|
||||||
|
|||||||
Reference in New Issue
Block a user