session_start.inc
594 Bytes
<?PHP
//******************************************************************************
//* セッションスタート処理
//*
//* セッション変数
//*
//* これらのセッション変数を作成しておく
//******************************************************************************
session_cache_limiter('private must-revalidate');
$cache_limiter = session_cache_limiter();
session_cache_expire (30);
$cache_expire = session_cache_expire();
session_start();
//セッションチェック
if (($PHP_CAL_CODE == "") || ($PHP_CAL_FOLDER == "") || ($PHP_CAL_NAME == "")){
header("Location:login.php");
exit;
}
?>