<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.session.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.session-cache-limiter.php',
    1 => 'session_cache_limiter',
    2 => 'Assume o imposta il limitatore di cache corrente',
  ),
  'up' => 
  array (
    0 => 'ref.session.php',
    1 => 'Session Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.session-cache-expire.php',
    1 => 'session_cache_expire',
  ),
  'next' => 
  array (
    0 => 'function.session-commit.php',
    1 => 'session_commit',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/session/functions/session-cache-limiter.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.session-cache-limiter" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">session_cache_limiter</h1>
    <p class="verinfo">(PHP 4 &gt;= 4.0.3, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">session_cache_limiter</span> &mdash; <span class="dc-title">Assume o imposta il limitatore di cache corrente</span></p>

   </div>
   <div class="refsect1 unknown-1195" id="refsect1-function.session-cache-limiter-unknown-1195">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>session_cache_limiter</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$cache_limiter</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>session_cache_limiter()</strong></span> restituisce il nome del limitatore
     di cache corrente. Se <code class="parameter">cache_limiter</code> è
     specificato, il nome del limitatore di cache corrente viene cambiato
     nel nuovo valore.
    </p>
    <p class="para">
     Il limitatore di cache controlla quali header HTTP che influenzano la cache vengono 
     mandati al client. Questi header determinano i modi in cui il contenuto della 
     pagina può essere mandato in cache, sia da parte del client che da parte di 
     eventuali proxy. Impostando il limitatore di cache a
     <code class="literal">nocache</code>, per esempio, non permetterebbe nessun caching
     lato client. Un valore di <code class="literal">public</code>, invece, permetterebbe il caching.  
     Può anche essere impostato a <code class="literal">private</code>, che è leggermente più restrittivo di
     <code class="literal">public</code>.
    </p>
    <p class="para">
     Nella modalità <code class="literal">private</code>, l&#039;header Expire mandato al 
     client, potrebbe causare confusione per alcuni browser incluso Mozilla.
     Si può evitare questo problema con la modalità 
     <code class="literal">private_no_expire</code>. In questo modo l&#039;header Expire non
     viene mai spedito al client.
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <p class="para">
      <code class="literal">private_no_expire</code> è stato aggiunto in PHP 4.2.0dev.
     </p>
    </p></blockquote>
    <p class="para">
     Il limitatore di cache è resettato al valore di default archiviato in
     <code class="literal">session.cache_limiter</code> alla richiesta iniziale. Per questo motivo,
     avete bisogno di chiamare <span class="function"><strong>session_cache_limiter()</strong></span> per ogni
     richiesta (e prima che <span class="function"><a href="function.session-start.php" class="function">session_start()</a></span> sia chiamata).
    </p>
    <div class="example" id="example-1">
     <p><strong>Example #1 <span class="function"><strong>session_cache_limiter()</strong></span> esempi</strong></p>
     <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000"># set the cache limiter to 'private'<br /><br /></span><span style="color: #0000BB">session_cache_limiter</span><span style="color: #007700">(</span><span style="color: #DD0000">'private'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$cache_limiter </span><span style="color: #007700">= </span><span style="color: #0000BB">session_cache_limiter</span><span style="color: #007700">();<br /><br />echo </span><span style="color: #DD0000">"Il limitatore di cache è adesso impostato a </span><span style="color: #0000BB">$cache_limiter</span><span style="color: #DD0000">&lt;p&gt;"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

    </div>
   </div>

  </div><?php manual_footer($setup); ?>