<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.session-set-cookie-params.php',
    1 => 'session_set_cookie_params',
    2 => 'Oturum &ccedil;erezi bağımsız değişkenlerini tanımlar',
  ),
  'up' => 
  array (
    0 => 'ref.session.php',
    1 => 'Oturum İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.session-save-path.php',
    1 => 'session_save_path',
  ),
  'next' => 
  array (
    0 => 'function.session-set-save-handler.php',
    1 => 'session_set_save_handler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/session/functions/session-set-cookie-params.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.session-set-cookie-params" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">session_set_cookie_params</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">session_set_cookie_params</span> &mdash; <span class="dc-title">Oturum çerezi bağımsız değişkenlerini tanımlar</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.session-set-cookie-params-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>session_set_cookie_params</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$lifetime_or_options</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$path</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$domain</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span> <code class="parameter">$secure</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span> <code class="parameter">$httponly</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">Aşağıdaki sözdizimi PHP 7.3.0 ve sonrasında kullanılabilir:</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>session_set_cookie_params</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$lifetime_or_options</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   <var class="filename">php.ini</var> dosyasındaki çerez yönergelerinin değerlerini tanımlar. Bu işlevin
   etkisi betiğin çalışma süresiyle sınırlıdır. Bu bakımdan
   <span class="function"><strong>session_set_cookie_params()</strong></span> çağrısını her istek için
   <span class="function"><a href="function.session-start.php" class="function">session_start()</a></span> çağrısından önce yapmalısınız.
  </p>
  <p class="para">
   Bu işlev, <span class="function"><a href="function.ini-get.php" class="function">ini_get()</a></span> ile elde edilen PHP ini oturum
   yapılandırma yönergelerinin çalışma zamanı değerlerini belirtilen
   anahtarların değerleriyle günceller.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.session-set-cookie-params-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">lifetime_or_options</code></dt>
     <dd>
      <p class="para">
       İlk sözdiziminde,
       <a href="session.configuration.php#ini.session.cookie-lifetime" class="link">lifetime</a>
       oturum çerezinin ömrünü saniye cinsinden tanımlar.
      </p>
      <p class="para">
       İkinci sözdiziminde, <code class="literal">lifetime</code>,
       <code class="literal">path</code>, <code class="literal">domain</code>,
       <code class="literal">secure</code>, <code class="literal">httponly</code> ve
       <code class="literal">samesite</code> anahtarlarını ve bunlarla ilişkili değerleri
       içerebilen ilişkisel bir dizidir.  <code class="literal">samesite</code> anahtarı
       için değer <code class="literal">Lax</code> veya <code class="literal">Strict</code>
       olabilir. İzin verilen seçeneklerden belirtilmeyenlerin değerleri olarak
       öntanımlıları kullanılır. Eğer <code class="literal">samesite</code> anahtarı
       atlanırsa SameSite çerez özniteliği atanmaz.
      </p>
     </dd>
    
    
     <dt><code class="parameter">path</code></dt>
     <dd>
      <p class="para">
       Çerezin çalışacağı alandaki <a href="session.configuration.php#ini.session.cookie-path" class="link">
       dosya yolunu</a> tanımlar. Alandaki tüm dosya yolları için bir bölü
       çizgisi (&#039;/&#039;) kullanın.
      </p>
     </dd>
    
    
     <dt><code class="parameter">domain</code></dt>
     <dd>
      <p class="para">
       &#039;www.php.net&#039; gibi bir çerez <a href="session.configuration.php#ini.session.cookie-domain" class="link">
       alanı</a>. Çerezleri tüm alt alanlarda geçerli kılmak için alan
       adının önüne &#039;.php.net&#039; örneğindeki gibi bir notka koyun.
      </p>
     </dd>
    
    
     <dt><code class="parameter">secure</code></dt>
     <dd>
      <p class="para">
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> olduğu takdirde, çerez sadece
       <a href="session.configuration.php#ini.session.cookie-secure" class="link">güvenli</a> bağlantılar
       üzerinden gönderilir.
      </p>
     </dd>
    
    
     <dt><code class="parameter">httponly</code></dt>
     <dd>
      <p class="para">
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> ise PHP oturum çerezini
       <a href="session.configuration.php#ini.session.cookie-httponly" class="link">sadece HTTP protokolü</a>
       üzerinden göndermeye çalışır.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.session-set-cookie-params-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.session-set-cookie-params-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Sürüm: </th>
       <th>Açıklama</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        <code class="literal">path</code>, <code class="literal">domain</code> ve
        <code class="literal">secure</code> artık <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> olabiliyor.
       </td>
      </tr>

      <tr>
       <td>7.3.0</td>
       <td>
         <code class="parameter">lifetime_or_options</code> dizisini destekleyen
         yeni bir sözdizimi eklendi. Bu sözdizimi ile artık SameSite çerez
         özniteliği de atanabiliyor.
       </td>
      </tr>

      <tr>
       <td>7.2.0</td>
       <td>
        Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner. Evvelce <span class="type"><span class="type"><a href="language.types.void.php" class="type void">void</a></span></span> döndürürdü.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.session-set-cookie-params-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li>
     <a href="session.configuration.php#ini.session.cookie-lifetime" class="link">session.cookie_lifetime</a>
    </li>
    <li>
     <a href="session.configuration.php#ini.session.cookie-path" class="link">session.cookie_path</a>
    </li>
    <li>
     <a href="session.configuration.php#ini.session.cookie-domain" class="link">session.cookie_domain</a>
    </li>
    <li>
     <a href="session.configuration.php#ini.session.cookie-secure" class="link">session.cookie_secure</a>
    </li>
    <li>
     <a href="session.configuration.php#ini.session.cookie-httponly" class="link">session.cookie_httponly</a>
    </li>
    <li>
     <a href="session.configuration.php#ini.session.cookie-samesite" class="link">session.cookie_samesite</a>
    </li>
    <li><span class="function"><a href="function.session-get-cookie-params.php" class="function" rel="rdfs-seeAlso">session_get_cookie_params()</a> - Oturum &ccedil;erezi bağımsız değişkenlerini d&ouml;nd&uuml;r&uuml;r</span></li>
   </ul>
  </p>
 </div>


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