session_start.inc 542 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_EEVENT_STS != "hoge"){
	header("Location:login.php");
	exit;
}

?>