<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.session.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'session.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.session.php',
    1 => 'Sessions',
  ),
  'prev' => 
  array (
    0 => 'session.configuration.php',
    1 => '运行时配置',
  ),
  'next' => 
  array (
    0 => 'session.examples.php',
    1 => '示例',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/session/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="session.constants" class="appendix">
 <h1 class="title">预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.sid">
    <strong><code><a href="session.constants.php#constant.sid">SID</a></code></strong> 
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     包含着会话名以及会话 ID 的常量，格式为
     <code class="literal">&quot;name=ID&quot;</code>，或者如果会话 ID 已经在适当的会话
     cookie 中设定时则为空字符串。
     这和 <span class="function"><a href="function.session-id.php" class="function">session_id()</a></span> 返回的是同一个 ID。
    </span>
   </dd>
  
  
   <dt id="constant.php-session-disabled">
    <strong><code><a href="session.constants.php#constant.php-session-disabled">PHP_SESSION_DISABLED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     如果会话已禁用则返回 <span class="function"><a href="function.session-status.php" class="function">session_status()</a></span> 的值。
    </span>
   </dd>
  
  
   <dt id="constant.php-session-none">
    <strong><code><a href="session.constants.php#constant.php-session-none">PHP_SESSION_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     在会话已启用但是没有会话的时候返回 <span class="function"><a href="function.session-status.php" class="function">session_status()</a></span> 的值。
    </span>
   </dd>
  
  
   <dt id="constant.php-session-active">
    <strong><code><a href="session.constants.php#constant.php-session-active">PHP_SESSION_ACTIVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     在一个会话已启用并存在时返回  <span class="function"><a href="function.session-status.php" class="function">session_status()</a></span> 的值。
    </span>
   </dd>
  
  
 </dl>
</div>
<?php manual_footer($setup); ?>