日期:2014-05-17 浏览次数:20480 次
session_start(); if(isset($_SESSION)) { echo "Started"; } else { echo "Not Started"; }
session_start(); $status = session_status(); if($status == PHP_SESSION_DISABLED) { echo "Session is Disabled"; } else if($status == PHP_SESSION_NONE ) { echo "Session Enabled but No Session values Created"; } else { echo "Session Enabled and Session values Created"; }