session_start.inc 540 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_STS != "LOGIN"){
	header("Location:mtc_login.php");
	exit;
}

?>